diff options
-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] |