mirror of
https://github.com/roc-lang/roc.git
synced 2024-09-20 07:17:50 +03:00
Fix a sample code in tutorial to match its context
This commit is contained in:
parent
c536c70238
commit
3c95849914
@ -346,8 +346,8 @@ The `addAndStringify` function will accept any record with at least the fields `
|
||||
```roc
|
||||
total = addAndStringify { birds: 5, iguanas: 7 }
|
||||
|
||||
# The `name` field is unused by addAndStringify
|
||||
totalWithNote = addAndStringify { birds: 4, iguanas: 3, name: "Whee!" }
|
||||
# The `note` field is unused by addAndStringify
|
||||
totalWithNote = addAndStringify { birds: 4, iguanas: 3, note: "Whee!" }
|
||||
|
||||
addAndStringify = \counts ->
|
||||
Num.toStr (counts.birds + counts.iguanas)
|
||||
|
Loading…
Reference in New Issue
Block a user