Skip to content

Commit 24923a3

Browse files
authored
Merge pull request #694 from twitchard/patch-2
Fix typos
2 parents 93e9607 + fee86a9 commit 24923a3

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

docs/function.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ There is a comprehensive [Cheat-sheet](#cheat-sheet) at the end.
1111

1212
## The Basics
1313

14-
Define named functions with a [let binding](let-binding.md), parenthesis `()`,
14+
Define named functions with a [let binding](let-binding.md), parentheses `()`,
1515
and an arrow `=>`:
1616

1717
```reason
@@ -216,7 +216,7 @@ fn(~data=x, ());
216216
```
217217

218218
Reason provides a shorthand syntax for the pattern above. Prefixing a named
219-
argument's value with a question mark at the call site, will pass whatever is
219+
argument's value with a question mark at the call site will pass whatever is
220220
inside of the `Some()`, but if the value is `None`, then the named argument
221221
will not be supplied at all.
222222

@@ -236,7 +236,7 @@ values too._
236236

237237
#### Referencing Previous Arguments
238238

239-
When defining default values previous arguments may be used:
239+
When defining default values, previous arguments may be used:
240240

241241
```reason
242242
let add = (a, ~b, ~c=a+1, ~d=b+1, ()) => a + b + c + d;

0 commit comments

Comments
 (0)