Skip to content

Commit 492eb7a

Browse files
authored
trimStart/EndWhiteSpaces wording (#444)
1 parent 48487f9 commit 492eb7a

File tree

1 file changed

+14
-2
lines changed

1 file changed

+14
-2
lines changed

src/FSharpPlus/Extensions/String.fs

Lines changed: 14 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,11 +40,23 @@ module String =
4040
/// Converts to lowercase -- nullsafe function wrapper for String.ToLowerInvariant method.
4141
let toLower (source: string) = if isNull source then source else source.ToLowerInvariant ()
4242

43-
/// Trims white space -- function wrapper for String.Trim method.
43+
/// Trims leading and trailing white spaces -- function wrapper for String.Trim method.
4444
///
4545
/// Note this is distinct from trim which trims the given characters,
46-
/// not whitespace.
46+
/// not white spaces.
4747
let trimWhiteSpaces (source: string) = source.Trim ()
48+
49+
/// Trims leading white spaces -- function wrapper for String.TrimStart method.
50+
///
51+
/// Note this is distinct from trim which trims the given characters,
52+
/// not white spaces.
53+
let trimStartWhiteSpaces (source: string) = source.TrimStart ()
54+
55+
/// Trims trailing white spaces -- function wrapper for String.TrimEnd method.
56+
///
57+
/// Note this is distinct from trim which trims the given characters,
58+
/// not white spaces.
59+
let trimEndWhiteSpaces (source: string) = source.TrimEnd ()
4860

4961
#if !FABLE_COMPILER
5062

0 commit comments

Comments
 (0)