Skip to content

Commit 74b24ba

Browse files
authored
fix: typos in func cookbook (#912)
1 parent a9f1216 commit 74b24ba

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

languages/func/cookbook.mdx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1141,7 +1141,7 @@ Modifying methods allow data to be updated within the same variable, similar to
11411141
```func
11421142
(slice, (int)) load_digit (slice s) {
11431143
int x = s~load_uint(8); ;; load 8 bits (one char) from slice
1144-
x -= 48; ;; char '0' has code of 48, so we substract it to get the digit as a number
1144+
x -= 48; ;; char '0' has code of 48, so we subtract it to get the digit as a number
11451145
return (s, (x)); ;; return our modified slice and loaded digit
11461146
}
11471147
@@ -1246,7 +1246,7 @@ while (flag) {
12461246

12471247
**References:**
12481248

1249-
- [`Dictonaries primitives` in docs](/languages/func/stdlib/#dictionaries-primitives)
1249+
- [Dictionaries primitives in docs](/languages/func/stdlib/#dictionaries-primitives)
12501250
- [`dict_get_max?()` in docs](/languages/func/stdlib/#dict_get_max)
12511251
- [`dict_get_min?()` in docs](/languages/func/stdlib/#dict_get_min)
12521252
- [`dict_get_next?()` in docs](/languages/func/stdlib/#dict_get_next)

0 commit comments

Comments
 (0)