mirror of
https://github.com/tweag/nickel.git
synced 2024-11-10 10:46:49 +03:00
Fix typo in record stdlib doc (return -> returns)
This commit is contained in:
parent
1f873145a4
commit
4f5f5b7d7f
@ -53,7 +53,7 @@
|
||||
insert : forall a. Str -> a -> {_: a} -> {_: a}
|
||||
| doc m%%"
|
||||
Insert a new field in a record. `insert` doesn't mutate the original
|
||||
record but return a new one instead.
|
||||
record but returns a new one instead.
|
||||
|
||||
```nickel
|
||||
insert "foo" foo { bar = "bar" } =>
|
||||
@ -70,7 +70,7 @@
|
||||
remove : forall a. Str -> {_: a} -> {_: a}
|
||||
| doc m%"
|
||||
Remove a field from a record. `remove` doesn't mutate the original
|
||||
record but return a new one instead.
|
||||
record but returns a new one instead.
|
||||
|
||||
```nickel
|
||||
remove "foo" foo { foo = "foo", bar = "bar" } =>
|
||||
@ -82,7 +82,7 @@
|
||||
update | forall a. Str -> a -> { ; a} -> { ; a}
|
||||
| doc m%"
|
||||
Update a field of a record with a new value. `update` doesn't mutate the
|
||||
original record but return a new one instead. If the field to update is absent
|
||||
original record but returns a new one instead. If the field to update is absent
|
||||
from the given record, `update` simply adds it.
|
||||
|
||||
```nickel
|
||||
|
Loading…
Reference in New Issue
Block a user