diff options
author | Mikko Ahlroth <mikko@ahlroth.fi> | 2023-09-09 22:23:27 +0300 |
---|---|---|
committer | Louis Pilfold <louis@lpil.uk> | 2023-09-11 08:45:09 +0100 |
commit | 043310b26a14bec36985c76ca928330568b4e888 (patch) | |
tree | 93fb7d58eabe5ad8787ba08d0bd0ad4fbbd25105 | |
parent | dcfa88a41c66db58d6cf5a166960836dcf5c1226 (diff) | |
download | gleam_stdlib-043310b26a14bec36985c76ca928330568b4e888.tar.gz gleam_stdlib-043310b26a14bec36985c76ca928330568b4e888.zip |
Update string.slice docs
The slice function docs implied it could get two indexes, when it should get a start index and a length.
-rw-r--r-- | src/gleam/string.gleam | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gleam/string.gleam b/src/gleam/string.gleam index 7cf4243..39a69d3 100644 --- a/src/gleam/string.gleam +++ b/src/gleam/string.gleam @@ -189,7 +189,7 @@ pub fn compare(a: String, b: String) -> order.Order { @external(javascript, "../gleam_stdlib.mjs", "less_than") fn less_than(a: String, b: String) -> Bool -/// Takes a substring given a start and end grapheme indexes. Negative indexes +/// Takes a substring given a start grapheme index and a length. Negative indexes /// are taken starting from the *end* of the list. /// /// ## Examples |