diff options
author | Kryštof Řezáč <39591095+krystofrezac@users.noreply.github.com> | 2024-02-03 18:35:21 +0100 |
---|---|---|
committer | Louis Pilfold <louis@lpil.uk> | 2024-02-07 17:58:08 +0000 |
commit | 0f41c46412ab0f2e0a644ec4f811b00b70d469f8 (patch) | |
tree | 24602283a56e4ca50e9c3523cc4f5c5d094da0cd /src/content/chapter5_advanced_features | |
parent | f01e9f3f847b6238ee5d9a6931564da3d3ef7218 (diff) | |
download | tour-0f41c46412ab0f2e0a644ec4f811b00b70d469f8.tar.gz tour-0f41c46412ab0f2e0a644ec4f811b00b70d469f8.zip |
Fix typos
Diffstat (limited to 'src/content/chapter5_advanced_features')
3 files changed, 6 insertions, 6 deletions
diff --git a/src/content/chapter5_advanced_features/lesson00_use/code.gleam b/src/content/chapter5_advanced_features/lesson00_use/code.gleam index 37624ab..e7b435b 100644 --- a/src/content/chapter5_advanced_features/lesson00_use/code.gleam +++ b/src/content/chapter5_advanced_features/lesson00_use/code.gleam @@ -7,7 +7,7 @@ pub fn main() { } pub fn without_use() { - result.try(get_usename(), fn(username) { + result.try(get_username(), fn(username) { result.try(get_password(), fn(password) { result.map(log_in(username, password), fn(greeting) { greeting <> ", " <> username @@ -17,7 +17,7 @@ pub fn without_use() { } pub fn with_use() { - use username <- result.try(get_usename()) + use username <- result.try(get_username()) use password <- result.try(get_password()) use greeting <- result.map(log_in(username, password)) greeting <> ", " <> username @@ -25,7 +25,7 @@ pub fn with_use() { // Here are some pretend functions for this example: -fn get_usename() { +fn get_username() { Ok("alice") } diff --git a/src/content/chapter5_advanced_features/lesson01_use_sugar/code.gleam b/src/content/chapter5_advanced_features/lesson01_use_sugar/code.gleam index e6be67f..6c5ccaa 100644 --- a/src/content/chapter5_advanced_features/lesson01_use_sugar/code.gleam +++ b/src/content/chapter5_advanced_features/lesson01_use_sugar/code.gleam @@ -3,7 +3,7 @@ import gleam/result pub fn main() { let x = { - use username <- result.try(get_usename()) + use username <- result.try(get_username()) use password <- result.try(get_password()) use greeting <- result.map(log_in(username, password)) greeting <> ", " <> username @@ -17,7 +17,7 @@ pub fn main() { // Here are some pretend functions for this example: -fn get_usename() { +fn get_username() { Ok("alice") } diff --git a/src/content/chapter5_advanced_features/lesson04_externals/code.gleam b/src/content/chapter5_advanced_features/lesson04_externals/code.gleam index ade2c54..1101b82 100644 --- a/src/content/chapter5_advanced_features/lesson04_externals/code.gleam +++ b/src/content/chapter5_advanced_features/lesson04_externals/code.gleam @@ -8,7 +8,7 @@ pub type DateTime pub fn now() -> DateTime // The `now` function in `./my_package_ffi.mjs` looks like this: -// external function now() { +// export function now() { // return new Date(); // } |