Skip to content

Commit 76fbe4c

Browse files
Rename string trim functions (#315)
Co-authored-by: Oskar Gewalli <wallymathieu@users.noreply.github.com>
1 parent 50207cf commit 76fbe4c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/FSharpPlus/Extensions/String.fs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ module String =
8282
///
8383
/// Note this is distinct from trim which trims the given characters,
8484
/// not white spaces.
85-
let trimWhiteSpaces (source: string) =
85+
let trim (source: string) =
8686
raiseIfNull (nameof source) source
8787

8888
source.Trim ()
@@ -151,7 +151,7 @@ module String =
151151
source.PadRight (totalLength, paddingChar)
152152

153153
/// Removes all leading and trailing occurrences of specified characters from the given string.
154-
let trim (trimChars: char seq) (source: string) =
154+
let trimBoth (trimChars: char seq) (source: string) =
155155
raiseIfNull (nameof source) source
156156

157157
source.Trim (Seq.toArray trimChars)

0 commit comments

Comments
 (0)