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/lesson00_use | |
parent | f01e9f3f847b6238ee5d9a6931564da3d3ef7218 (diff) | |
download | tour-0f41c46412ab0f2e0a644ec4f811b00b70d469f8.tar.gz tour-0f41c46412ab0f2e0a644ec4f811b00b70d469f8.zip |
Fix typos
Diffstat (limited to 'src/content/chapter5_advanced_features/lesson00_use')
-rw-r--r-- | src/content/chapter5_advanced_features/lesson00_use/code.gleam | 6 |
1 files changed, 3 insertions, 3 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") } |