diff options
author | Joseph T. Lyons <JosephTLyons@gmail.com> | 2024-12-05 17:02:19 -0500 |
---|---|---|
committer | Louis Pilfold <louis@lpil.uk> | 2024-12-05 23:52:29 +0000 |
commit | f4f3b89f1819a0d55448ef2e9997fd06d349e392 (patch) | |
tree | 386b4173a75560bcf1a6e9ac81982cbc2c46e409 | |
parent | cdb45f406f0ffd97245cae2deeca4f376b272a6f (diff) | |
download | gleam_stdlib-f4f3b89f1819a0d55448ef2e9997fd06d349e392.tar.gz gleam_stdlib-f4f3b89f1819a0d55448ef2e9997fd06d349e392.zip |
Fix some typos
-rw-r--r-- | CHANGELOG.md | 2 | ||||
-rw-r--r-- | src/gleam/uri.gleam | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/CHANGELOG.md b/CHANGELOG.md index 852f513..8379e72 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -36,7 +36,7 @@ ## v0.42.0 - 2024-11-15 - The `bit_array` module gains the `bit_size` and `starts_with` functions. -- Ths `string` module gains the `drop_start`, `drop_end`, `pad_start`, +- The `string` module gains the `drop_start`, `drop_end`, `pad_start`, `pad_end`, `trim_start`, and `trim_end` functions. These replace the `drop_left`, `drop_right`, `pad_left`, `pad_right`, `trim_left`, and `trim_right` functions, which have been deprecated. diff --git a/src/gleam/uri.gleam b/src/gleam/uri.gleam index 06257bb..29545cf 100644 --- a/src/gleam/uri.gleam +++ b/src/gleam/uri.gleam @@ -259,7 +259,7 @@ fn parse_host_within_brackets_loop( // Inside `[...]` there can only be some characters, if we find a special // one then we know that we're actually parsing the other format for the // host and we switch to that! - case is_valid_host_withing_brackets_char(char) { + case is_valid_host_within_brackets_char(char) { True -> parse_host_within_brackets_loop(original, rest, pieces, size + 1) @@ -270,7 +270,7 @@ fn parse_host_within_brackets_loop( } } -fn is_valid_host_withing_brackets_char(char: Int) -> Bool { +fn is_valid_host_within_brackets_char(char: Int) -> Bool { // [0-9] { 48 >= char && char <= 57 } // [A-Z] |