diff options
author | usa <usa@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2015-06-18 14:39:21 +0000 |
---|---|---|
committer | usa <usa@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2015-06-18 14:39:21 +0000 |
commit | 122476479a31b8d708cd400760d64364727833a4 (patch) | |
tree | 6ebe987c6dd5e3a7b29abcee34bfd0e7bd2ce426 /thread.c | |
parent | a9b06707d99ea09d34823ae68aa3b874f5a661f8 (diff) | |
download | ruby-122476479a31b8d708cd400760d64364727833a4.tar.gz |
* thread.c (rb_thread_safe_level): fix document. $SAFE=3 is obsolete.
[ci skip]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@50961 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'thread.c')
-rw-r--r-- | thread.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -2701,9 +2701,9 @@ rb_thread_stop_p(VALUE thread) * Returns the safe level in effect for <i>thr</i>. Setting thread-local safe * levels can help when implementing sandboxes which run insecure code. * - * thr = Thread.new { $SAFE = 3; sleep } + * thr = Thread.new { $SAFE = 1; sleep } * Thread.current.safe_level #=> 0 - * thr.safe_level #=> 3 + * thr.safe_level #=> 1 */ static VALUE |