Skip to content
Permalink

Comparing changes

This is a direct comparison between two commits made in this repository or its related repositories. View the default comparison for this range or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: gleam-lang/stdlib
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: 26024808f0d173fe209df60fac797305d016c019
Choose a base ref
..
head repository: gleam-lang/stdlib
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: db3d5c575d71dad7e7b8259421f7f07b586e6c75
Choose a head ref
Showing with 3 additions and 3 deletions.
  1. +3 βˆ’3 src/gleam/string.gleam
6 changes: 3 additions & 3 deletions src/gleam/string.gleam
Original file line number Diff line number Diff line change
@@ -558,7 +558,7 @@ fn do_trim(string: String) -> String {
/// ## Examples
///
/// ```gleam
/// trim_chars_left("..,hats,..", ".,")
/// trim_chars("..,hats,..", ".,")
/// // -> "hats"
/// ```
pub fn trim_chars(string: String, charset: String) -> String {
@@ -641,7 +641,7 @@ fn do_trim_end(string: String) -> String {
/// ## Examples
///
/// ```gleam
/// trim_chars_left("..,hats,..", ".,")
/// trim_chars_start("..,hats,..", ".,")
/// // -> "hats,.."
/// ```
pub fn trim_chars_start(string: String, charset: String) -> String {
@@ -658,7 +658,7 @@ fn do_trim_chars_start(string: String, charset: String) -> String {
/// ## Examples
///
/// ```gleam
/// trim_chars_right("..,hats,..", ".,")
/// trim_chars_end("..,hats,..", ".,")
/// // -> "..,hats"
/// ```
pub fn trim_chars_end(string: String, charset: String) -> String {