Skip to content

Commit 35ff85e

Browse files
committed
♻️ refactor: update comments #2
1 parent e846bef commit 35ff85e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

strings.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -372,7 +372,7 @@ func TrimWhitespace(s string) string {
372372

373373
// CleanSpaces removes leading and trailing whitespace characters from a given string and replaces sequences of whitespace characters with a single space.
374374
// It first checks if the input string is empty or consists solely of whitespace characters. If so, it returns an empty string.
375-
// Otherwise, it calls RemoveDuplicateWhitespace to replace all sequences of whitespace characters with a single space, effectively removing duplicates.
375+
// Otherwise, it calls TrimWhitespace to replace all sequences of whitespace characters with a single space, effectively removing duplicates.
376376
// Finally, it trims the leading and trailing whitespace characters from the resulting string using strings.TrimSpace and returns the cleaned string.
377377
func CleanSpaces(s string) string {
378378
if IsEmpty(s) {

0 commit comments

Comments
 (0)