Skip to content

Commit 44bfb5a

Browse files
authored
docs: fix typos in doc comments (#2055)
1 parent c549f88 commit 44bfb5a

3 files changed

Lines changed: 5 additions & 5 deletions

File tree

Sources/FoundationEssentials/AttributedString/AttributedStringProtocol.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -242,14 +242,14 @@ extension AttributedStringProtocol { // Equatable, Hashable
242242

243243
@available(macOS 12, iOS 15, tvOS 15, watchOS 8, *)
244244
extension AttributedStringProtocol {
245-
/// Returns the position of the character immediately after another charcter indicated by an index.
245+
/// Returns the position of the character immediately after another character indicated by an index.
246246
///
247247
/// - Parameter i: The index of a character in the attributed string.
248248
/// - Returns: The position of the character immediately after the character at index `i`.
249249
public func index(afterCharacter i: AttributedString.Index) -> AttributedString.Index {
250250
self.characters.index(after: i)
251251
}
252-
/// Returns the position of the character immediately before another charcter indicated by an index.
252+
/// Returns the position of the character immediately before another character indicated by an index.
253253
///
254254
/// - Parameter i: The index of a character in the attributed string.
255255
/// - Returns: The position of the character immediately before the character at index `i`.

Sources/FoundationEssentials/Calendar/Calendar_Recurrence.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -699,7 +699,7 @@ extension Calendar {
699699
// necessarily occur in the first week of the month.
700700

701701
/// The component where we set the week number, if we are targeting only
702-
/// a particular occurence of a weekday
702+
/// a particular occurrence of a weekday
703703
let weekComponent: Calendar.Component = if parent == .month {
704704
.weekOfMonth
705705
} else {

Sources/FoundationInternationalization/String/SortDescriptor.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,10 +19,10 @@ import FoundationEssentials
1919
public struct SortDescriptor<Compared>: SortComparator, Codable, Sendable {
2020
/// The set of supported safely serializable comparisons.
2121
enum AllowedComparison: Hashable, Codable, Sendable {
22-
/// Compare `String` by retrieving from key path, using using the given standard string comparator.
22+
/// Compare `String` by retrieving from key path, using the given standard string comparator.
2323
case comparableString(String.StandardComparator, KeyPath<Compared, String> & Sendable)
2424

25-
/// Compare `String?` by retrieving from key path, using using the given standard string comparator.
25+
/// Compare `String?` by retrieving from key path, using the given standard string comparator.
2626
case comparableOptionalString(String.StandardComparator, KeyPath<Compared, String?> & Sendable)
2727

2828
/// Compares using `Swift.Comparable` implementation.

0 commit comments

Comments
 (0)