Skip to content

Commit

Permalink
Merge pull request #3956 from Mercerenies/master
Browse files Browse the repository at this point in the history
Corrected Ruby nutshell typo
  • Loading branch information
coke committed Sep 8, 2021
2 parents 1112bd9 + 076ce1d commit fcd9078
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion doc/Language/rb-nutshell.pod6
Expand Up @@ -289,7 +289,10 @@ add(2, 3); # => 5, and it works without it
=end code
=for code :lang<ruby>
foo_method = &foo; # Ruby
def foo
...
end
foo_method = method(:foo); # Ruby
=for code
sub foo { ... };
my &foo_method = &foo; # Raku
Expand Down

0 comments on commit fcd9078

Please sign in to comment.