From 226a2ee1cfd1d6d408530c218207e6a12e31433f Mon Sep 17 00:00:00 2001 From: Louis Pilfold Date: Sat, 2 Nov 2024 11:54:14 +0000 Subject: Document the definition of whitespace Related to https://github.com/gleam-lang/stdlib/issues/717 --- src/gleam/string.gleam | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src') diff --git a/src/gleam/string.gleam b/src/gleam/string.gleam index 0f073b9..14acc23 100644 --- a/src/gleam/string.gleam +++ b/src/gleam/string.gleam @@ -543,6 +543,11 @@ fn padding(size: Int, pad_string: String) -> String { /// Removes whitespace on both sides of a `String`. /// +/// Whitespace in this function is the set of nonbreakable whitespace +/// codepoints, defined as Pattern_White_Space in [Unicode Standard Annex #31][1]. +/// +/// [1]: https://unicode.org/reports/tr31/ +/// /// ## Examples /// /// ```gleam -- cgit v1.2.3