diff options
author | Sizhe Zhao <prc.zhao@outlook.com> | 2020-05-05 12:21:54 +0800 |
---|---|---|
committer | Andrew Ryan Davis <AndrewDavis1191@gmail.com> | 2020-05-23 15:40:10 -0700 |
commit | 27d32b5e435bab9531250c69ab889aeb26d7e77b (patch) | |
tree | 762454a1c7ea5c951bc930e4f5bacff5c1a7e6c6 /raku.html.markdown | |
parent | 5f6375db90cf0dfdbe457fce4239023ed057579e (diff) |
Fix typos in raku.html.markdown
Diffstat (limited to 'raku.html.markdown')
-rw-r--r-- | raku.html.markdown | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/raku.html.markdown b/raku.html.markdown index f2e23ae3..f51138a5 100644 --- a/raku.html.markdown +++ b/raku.html.markdown @@ -15,7 +15,7 @@ the JVM and the [MoarVM](http://moarvm.com). 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. * `# 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. @@ -265,7 +265,7 @@ takes-a-bool('config', :bool); # OUTPUT: «config takes True» takes-a-bool('config', :!bool); # OUTPUT: «config takes False» =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 the code object. @@ -624,7 +624,7 @@ say $obj; # OUTPUT: «「a」» say $obj.WHAT; # OUTPUT: «(Match)» # 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). 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 a hash by the parser. That being said, blocks can declare what's known 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 my &mult = { $^numbers * $:times } |