Skip to content

Commit 076ce1d

Browse files
committed
Corrected Ruby nutshell typo
1 parent b6031ae commit 076ce1d

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

doc/Language/rb-nutshell.pod6

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -289,7 +289,10 @@ add(2, 3); # => 5, and it works without it
289289
=end code
290290
291291
=for code :lang<ruby>
292-
foo_method = &foo; # Ruby
292+
def foo
293+
...
294+
end
295+
foo_method = method(:foo); # Ruby
293296
=for code
294297
sub foo { ... };
295298
my &foo_method = &foo; # Raku

0 commit comments

Comments
 (0)