diff --git a/languages/func/cookbook.mdx b/languages/func/cookbook.mdx index 496aa54a..47705a1e 100644 --- a/languages/func/cookbook.mdx +++ b/languages/func/cookbook.mdx @@ -1141,7 +1141,7 @@ Modifying methods allow data to be updated within the same variable, similar to ```func (slice, (int)) load_digit (slice s) { int x = s~load_uint(8); ;; load 8 bits (one char) from slice - x -= 48; ;; char '0' has code of 48, so we substract it to get the digit as a number + x -= 48; ;; char '0' has code of 48, so we subtract it to get the digit as a number return (s, (x)); ;; return our modified slice and loaded digit } @@ -1246,7 +1246,7 @@ while (flag) { **References:** -- [`Dictonaries primitives` in docs](/languages/func/stdlib/#dictionaries-primitives) +- [Dictionaries primitives in docs](/languages/func/stdlib/#dictionaries-primitives) - [`dict_get_max?()` in docs](/languages/func/stdlib/#dict_get_max) - [`dict_get_min?()` in docs](/languages/func/stdlib/#dict_get_min) - [`dict_get_next?()` in docs](/languages/func/stdlib/#dict_get_next)