From 5a986a5d6fed619e593922c72f532e0b01736a27 Mon Sep 17 00:00:00 2001 From: Cristian A Monterroza Date: Mon, 24 Jun 2024 18:26:12 -0700 Subject: [PATCH] Update String+Contains.swift --- .../Extensions/String/String+Contains.swift | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) diff --git a/Sources/WrkstrmMain/Extensions/String/String+Contains.swift b/Sources/WrkstrmMain/Extensions/String/String+Contains.swift index afa9546..d94eaf8 100644 --- a/Sources/WrkstrmMain/Extensions/String/String+Contains.swift +++ b/Sources/WrkstrmMain/Extensions/String/String+Contains.swift @@ -1,10 +1,11 @@ -/// An extension on `String` providing utility methods for character uniqueness and permutation checking. +/// An extension on `String` providing utility methods for character uniqueness and permutation +/// checking. extension String { /// Checks whether the string contains all unique characters. /// /// This method iterates through the characters of the string, storing them in a set to check for - /// uniqueness. If any character is found more than once, the method returns `false`; otherwise, it returns - /// `true`. + /// uniqueness. If any character is found more than once, the method returns `false`; otherwise, + /// it returns `true`. /// /// For example, "abc" returns `true`, but "aabb" returns `false`. /// @@ -23,11 +24,12 @@ extension String { /// Determines if the string is a permutation of another string. /// - /// This method checks if two strings have the same character count and the same sum of Unicode scalar - /// values, which implies that one string is a permutation of the other. + /// This method checks if two strings have the same character count and the same sum of Unicode + /// scalar values, which implies that one string is a permutation of the other. /// - /// Note: This method assumes that the strings consist of characters with unique Unicode scalar values. - /// For strings with characters having the same scalar values, this method may produce incorrect results. + /// Note: This method assumes that the strings consist of characters with unique Unicode scalar + /// values.For strings with characters having the same scalar values, this method may produce + /// incorrect results. /// /// For example, "abc" and "cab" are permutations, but "abc" and "def" are not. ///