Skip to content

Commit

Permalink
Merge pull request Quick#426 from fixTypos/fix_typos
Browse files Browse the repository at this point in the history
fix typos using misspell
  • Loading branch information
jeffh authored May 16, 2017
2 parents f0327e7 + 099db3c commit 492299f
Show file tree
Hide file tree
Showing 6 changed files with 7 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ import Foundation

handledfirstException = true
} else {
// If multiple fatal errors occur, don't handle subsquent errors (let the program crash)
// If multiple fatal errors occur, don't handle subsequent errors (let the program crash)
reply.RetCode = KERN_FAILURE
}

Expand Down
2 changes: 1 addition & 1 deletion Sources/Nimble/Adapters/NimbleEnvironment.swift
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import Dispatch
import Foundation

/// "Global" state of Nimble is stored here. Only DSL functions should access / be aware of this
/// class' existance
/// class' existence
internal class NimbleEnvironment {
static var activeInstance: NimbleEnvironment {
get {
Expand Down
2 changes: 1 addition & 1 deletion Sources/Nimble/Matchers/MatchError.swift
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import Foundation
/// error from the specified case.
///
/// Errors are tried to be compared by their implementation of Equatable,
/// otherwise they fallback to comparision by _domain and _code.
/// otherwise they fallback to comparison by _domain and _code.
public func matchError<T: Error>(_ error: T) -> Predicate<Error> {
return Predicate.fromDeprecatedClosure { actualExpression, failureMessage in
let actualError: Error? = try actualExpression.evaluate()
Expand Down
2 changes: 1 addition & 1 deletion Sources/Nimble/Matchers/MatcherFunc.swift
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
/// behavior. The toNot() behavior is the negation of to().
///
/// @see NonNilMatcherFunc if you prefer to have this matcher fail when nil
/// values are recieved in an expectation.
/// values are received in an expectation.
///
/// You may use this when implementing your own custom matchers.
///
Expand Down
2 changes: 1 addition & 1 deletion Sources/Nimble/Matchers/ThrowError.swift
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import Foundation
/// error of the specified type or from the specified case.
///
/// Errors are tried to be compared by their implementation of Equatable,
/// otherwise they fallback to comparision by _domain and _code.
/// otherwise they fallback to comparison by _domain and _code.
///
/// Alternatively, you can pass a closure to do any arbitrary custom matching
/// to the thrown error. The closure only gets called when an error was thrown.
Expand Down
4 changes: 2 additions & 2 deletions Sources/Nimble/Utils/Async.swift
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ internal class AwaitPromise<T> {
/// this method will resolve in a no-op.
///
/// @returns a Bool that indicates if the async result was accepted or rejected because another
/// value was recieved first.
/// value was received first.
func resolveResult(_ result: AwaitResult<T>) -> Bool {
if signal.wait(timeout: .now()) == .success {
self.asyncResult = result
Expand Down Expand Up @@ -218,7 +218,7 @@ internal class AwaitPromiseBuilder<T> {
/// @discussion
/// This function must be executed on the main thread and cannot be nested. This is because
/// this function (and it's related methods) coordinate through the main run loop. Tampering
/// with the run loop can cause undesireable behavior.
/// with the run loop can cause undesirable behavior.
///
/// This method will return an AwaitResult in the following cases:
///
Expand Down

0 comments on commit 492299f

Please sign in to comment.