Skip to content

Commit

Permalink
Document the definition of whitespace
Browse files Browse the repository at this point in the history
Related to #717
  • Loading branch information
lpil committed Nov 2, 2024
1 parent b617da1 commit 226a2ee
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/gleam/string.gleam
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 226a2ee

Please sign in to comment.