Skip to content
This repository has been archived by the owner on Nov 16, 2020. It is now read-only.

Commit

Permalink
Merge branch 'gm'
Browse files Browse the repository at this point in the history
  • Loading branch information
tanner0101 committed Apr 11, 2018
2 parents a4dd2a0 + dd3d161 commit ab6c5a3
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Sources/Validation/Validations.swift
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ public struct Validations<M>: CustomStringConvertible where M: Validatable {
})
}

/// Adds a custom `Validation` to at the supplied key path and readable path.
/// Adds a custom `Validation` at the supplied key path and readable path.
///
/// try validations.add(\.name, at: ["name"], "is vapor") { name in
/// guard name == "vapor" else { throw }
Expand Down Expand Up @@ -84,7 +84,7 @@ public struct Validations<M>: CustomStringConvertible where M: Validatable {
}

extension Validations where M: Reflectable {
/// Adds a new `Validation` to at the supplied key path. Readable path will be reflected.
/// Adds a new `Validation` at the supplied key path. Readable path will be reflected.
///
/// try validations.add(\.name, .count(5...) && .alphanumeric)
///
Expand All @@ -96,7 +96,7 @@ extension Validations where M: Reflectable {
}


/// Adds a new custom `Validation` to at the supplied key path. Readable path will be reflected.
/// Adds a new custom `Validation` at the supplied key path. Readable path will be reflected.
///
/// try validations.add(\.name, "is vapor") { name in
/// guard name == "vapor" else { throw }
Expand Down

0 comments on commit ab6c5a3

Please sign in to comment.