Skip to content

Commit

Permalink
doc: fix several typos (vlang#7509)
Browse files Browse the repository at this point in the history
  • Loading branch information
0xflotus authored Dec 23, 2020
1 parent 7b9756b commit f505f5e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions doc/docs.md
Original file line number Diff line number Diff line change
Expand Up @@ -964,7 +964,7 @@ for key, value in m {
} // two -> 2
```

Either key or value can be ignored by using a single underscore as the identifer.
Either key or value can be ignored by using a single underscore as the identifier.
```v nofmt
m := {'one':1, 'two':2}
Expand Down Expand Up @@ -3001,7 +3001,7 @@ but may impact the size of your executable.
the compiler will translate array operations directly into C array operations -
omiting bounds checking. This may save a lot of time in a function that iterates
over an array but at the cost of making the function unsafe - unless
the boundries will be checked by the user.
the boundaries will be checked by the user.

`if _likely_(bool expression) {` this hints the C compiler, that the passed
boolean expression is very likely to be true, so it can generate assembly
Expand Down

0 comments on commit f505f5e

Please sign in to comment.