summaryrefslogtreecommitdiff
path: root/cont.c
diff options
context:
space:
mode:
authorBenoit Daloze <eregontp@gmail.com>2022-12-20 22:10:37 +0100
committerBenoit Daloze <eregontp@gmail.com>2022-12-20 23:05:56 +0100
commit4495dea153a097c59d56819bc827bebfbef5be3f (patch)
tree4d3ecaf69b58325d7a058d3d7e369a18b21ae850 /cont.c
parent39e70eef724d1c4b50a6ee894c35a3e60773671c (diff)
downloadruby-4495dea153a097c59d56819bc827bebfbef5be3f.tar.gz
Improve documentation for fiber-scoped variables
* Especially around Enumerator.
Diffstat (limited to 'cont.c')
-rw-r--r--cont.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/cont.c b/cont.c
index 89dcd49545..71d93cebd0 100644
--- a/cont.c
+++ b/cont.c
@@ -2153,7 +2153,7 @@ rb_fiber_storage_set(VALUE self, VALUE value)
/**
* call-seq: Fiber[key] -> value
*
- * Returns the value of the fiber-local variable identified by +key+.
+ * Returns the value of the fiber-scoped variable identified by +key+.
*
* The +key+ must be a symbol, and the value is set by Fiber#[]= or
* Fiber#store.
@@ -2176,7 +2176,7 @@ rb_fiber_storage_aref(VALUE class, VALUE key)
/**
* call-seq: Fiber[key] = value
*
- * Assign +value+ to the fiber-local variable identified by +key+.
+ * Assign +value+ to the fiber-scoped variable identified by +key+.
* The variable is created if it doesn't exist.
*
* +key+ must be a Symbol, otherwise a TypeError is raised.