Skip to content

Commit 91479a0

Browse files
committed
Cleanup.
1 parent 851f34a commit 91479a0

File tree

6 files changed

+5
-5
lines changed

6 files changed

+5
-5
lines changed

Sources/DiffableTextKit/DiffableTextStyle.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,13 +43,13 @@ public protocol DiffableTextStyle: Equatable {
4343
///
4444
@inlinable func format(_ value: Value) -> String
4545

46-
/// Returns a value and a snapshot.
46+
/// Returns a value and a snapshot describing it.
4747
///
4848
/// This method is called in response to changes upstream while the view is focused.
4949
///
5050
@inlinable func interpret(_ value: Value) -> Commit<Value>
5151

52-
/// Returns a value and a snapshot.
52+
/// Returns a value and a snapshot describing it.
5353
///
5454
/// This method is called in response to user input.
5555
///

Sources/DiffableTextKit/Helpers/Carets.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
/// Up to two carets represented by a lower and upper bound.
1515
///
1616
/// When its bounds are equal, it represents a single upper caret.
17-
/// This distinction matters to transformations such as map(lower:upper:).
17+
/// This distinction matters for transformations such as map(lower:upper:).
1818
///
1919
@usableFromInline struct Carets<Bound: Comparable>: Equatable {
2020

Sources/DiffableTextKit/Helpers/Index.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ public struct Index: Comparable {
3939
/// Creates an instance describing a character's location.
4040
///
4141
/// - Parameters:
42-
/// - character: The character encoded index.
42+
/// - character: The character encoded index.
4343
/// - characters: The collection of characters that contains the index.
4444
///
4545
@inlinable init(_ character: String.Index, in characters: String) {

Sources/DiffableTextKit/Models/Context.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313

1414
/// A set of values describing the state of a diffable text view.
1515
///
16-
/// - Uses copy-on-write.
16+
/// - Uses copy-on-write semantics.
1717
///
1818
public struct Context<Style: DiffableTextStyle> {
1919
public typealias Commit = DiffableTextKit.Commit<Value>
File renamed without changes.
File renamed without changes.

0 commit comments

Comments
 (0)