mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* thread.c (thread_initialize): fixed typo.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@14110 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
430f5a1d61
commit
360a674fe5
1 changed files with 1 additions and 1 deletions
2
thread.c
2
thread.c
|
@ -438,7 +438,7 @@ thread_initialize(VALUE thread, VALUE args)
|
|||
if (!proc || !RTEST(loc = rb_proc_location(proc))) {
|
||||
rb_raise(rb_eThreadError, "already initialized thread");
|
||||
}
|
||||
fn = RSTRING_PTR(RARRAY_PTR(loc)[0]);
|
||||
file = RSTRING_PTR(RARRAY_PTR(loc)[0]);
|
||||
if (NIL_P(line = RARRAY_PTR(loc)[1])) {
|
||||
rb_raise(rb_eThreadError, "already initialized thread - %s",
|
||||
file);
|
||||
|
|
Loading…
Add table
Reference in a new issue