Skip to content

Commit

Permalink
Fix typos in doc comments across the codebase (#513)
Browse files Browse the repository at this point in the history
  • Loading branch information
BenedictSt authored Sep 2, 2022
1 parent e7e318e commit b24b964
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion Sources/TokamakCore/Animation/Transaction.swift
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
// limitations under the License.

public struct Transaction {
/// The overriden transaction for a state change in a `withTransaction` block.
/// The overridden transaction for a state change in a `withTransaction` block.
/// Is always set back to `nil` when the block exits.
static var _active: Self?

Expand Down
2 changes: 1 addition & 1 deletion Sources/TokamakCore/Animation/_AnimationSolvers.swift
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ import Foundation
public protocol _AnimationSolver {
/// Solve value at a specific point in time.
func solve(at t: Double) -> Double
/// Calculates the duration of the animation to a specific presision.
/// Calculates the duration of the animation to a specific precision.
func restingPoint(precision y: Double) -> Double
}

Expand Down
2 changes: 1 addition & 1 deletion Sources/TokamakCore/Stubs/CGStubs.swift
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ public struct CGAffineTransform: Equatable {
/// Returns an affine transformation matrix constructed from a rotation value you provide.
/// - Parameters:
/// - angle: The angle, in radians, by which this matrix rotates the coordinate system axes.
/// A positive value specifies clockwise rotation and anegative value specifies
/// A positive value specifies clockwise rotation and a negative value specifies
/// counterclockwise rotation.
public init(rotationAngle angle: CGFloat) {
self.init(a: cos(angle), b: sin(angle), c: -sin(angle), d: cos(angle), tx: 0, ty: 0)
Expand Down
2 changes: 1 addition & 1 deletion Sources/TokamakStaticHTML/Views/Containers/List.swift
Original file line number Diff line number Diff line change
Expand Up @@ -162,7 +162,7 @@ extension InsetGroupedListStyle: ListStyleDeferredToRenderer {
}
}

// TODO: Make sections collabsible (see Section.swift for more impl. details)
// TODO: Make sections collapsible (see Section.swift for more impl. details)
extension SidebarListStyle: ListStyleDeferredToRenderer {
public func sectionHeader<Header>(_ header: Header) -> AnyView where Header: View {
AnyView(
Expand Down

0 comments on commit b24b964

Please sign in to comment.