summaryrefslogtreecommitdiff
path: root/cont.c
diff options
context:
space:
mode:
authorNobuyoshi Nakada <nobu@ruby-lang.org>2022-12-21 14:32:05 +0900
committerNobuyoshi Nakada <nobu@ruby-lang.org>2022-12-21 14:34:40 +0900
commit9f42ee3e529759dc18a92ed4d3bbd0612787d8fd (patch)
tree5b85c034e6155c578dd74404f9e304c10222687d /cont.c
parent1e989c49a823c7257040fdd1d712a06a5acd6a60 (diff)
downloadruby-9f42ee3e529759dc18a92ed4d3bbd0612787d8fd.tar.gz
[DOC] Fix formatting
Diffstat (limited to 'cont.c')
-rw-r--r--cont.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/cont.c b/cont.c
index 004ca6fb0f..02b3279784 100644
--- a/cont.c
+++ b/cont.c
@@ -2069,7 +2069,9 @@ fiber_storage_get(rb_fiber_t *fiber)
return storage;
}
-static void storage_access_must_be_from_same_fiber(VALUE self) {
+static void
+storage_access_must_be_from_same_fiber(VALUE self)
+{
rb_fiber_t *fiber = fiber_ptr(self);
rb_fiber_t *current = fiber_current();
if (fiber != current) {
@@ -2323,7 +2325,7 @@ rb_fiber_initialize_kw(int argc, VALUE* argv, VALUE self, int kw_splat)
* Otherwise, the given <tt>storage</tt> is used as the new fiber's storage,
* and it must be an instance of Hash.
*
- * Explicitly using `storage: true` is currently experimental and may
+ * Explicitly using <tt>storage: true</tt> is currently experimental and may
* change in the future.
*/
static VALUE