Fix typos in raku.html.markdown

This commit is contained in:
Sizhe Zhao 2020-05-05 12:21:54 +08:00 committed by Andrew Ryan Davis
parent 5f6375db90
commit 27d32b5e43

View File

@ -15,7 +15,7 @@ the JVM and the [MoarVM](http://moarvm.com).
Meta-note: Meta-note:
* Although the pound sign (`#`) is used for sentences and notes, Pod-styled * Although the pound sign (`#`) is used for sentences and notes, Pod-styled
comments (more below about them) are used whenever it's convenient. comments (more below about them) are used whenever it's convenient.
* `# OUTPUT:` is used to represent the output of a command to any standard * `# OUTPUT:` is used to represent the output of a command to any standard
stream. If the output has a newline, it's represented by the `␤` symbol. stream. If the output has a newline, it's represented by the `␤` symbol.
@ -265,7 +265,7 @@ takes-a-bool('config', :bool); # OUTPUT: «config takes True␤»
takes-a-bool('config', :!bool); # OUTPUT: «config takes False␤» takes-a-bool('config', :!bool); # OUTPUT: «config takes False␤»
=begin comment =begin comment
Since paranthesis can be omitted when calling a subroutine, you need to use Since parenthesis can be omitted when calling a subroutine, you need to use
`&` in order to distinguish between a call to a sub with no arguments and `&` in order to distinguish between a call to a sub with no arguments and
the code object. the code object.
@ -624,7 +624,7 @@ say $obj; # OUTPUT: «「a」␤»
say $obj.WHAT; # OUTPUT: «(Match)␤» say $obj.WHAT; # OUTPUT: «(Match)␤»
# Hashes # Hashes
say 'key' ~~ %hash; # OUTPUT:«True␤», if key exists in hash. say 'key' ~~ %hash; # OUTPUT: «True␤», if key exists in hash.
# Type - Checks if left side "is of type" (can check superclasses and roles). # Type - Checks if left side "is of type" (can check superclasses and roles).
say 1 ~~ Int; # OUTPUT: «True␤» say 1 ~~ Int; # OUTPUT: «True␤»
@ -862,7 +862,7 @@ Both pointy blocks and blocks are pretty much the same thing, except that
the former can take arguments, and that the latter can be mistaken as the former can take arguments, and that the latter can be mistaken as
a hash by the parser. That being said, blocks can declare what's known a hash by the parser. That being said, blocks can declare what's known
as placeholders parameters through the twigils `$^` (for positional as placeholders parameters through the twigils `$^` (for positional
parameters) and `$:` (for named parameters). More on them latern on. parameters) and `$:` (for named parameters). More on them later on.
=end comment =end comment
my &mult = { $^numbers * $:times } my &mult = { $^numbers * $:times }