Skip to content

Commit

Permalink
Update references to reverse in the docs (#294)
Browse files Browse the repository at this point in the history
  • Loading branch information
stNamco authored and sebastiangrail committed Sep 5, 2019
1 parent 262c54b commit c3bb2da
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions README.md
Expand Up @@ -53,9 +53,9 @@ property("The reverse of the reverse of an array is that array") <- forAll { (xs
// *** Passed 100 tests
// (100% , Right identity, Left identity)
return
(xs.reverse().reverse() == xs) <?> "Left identity"
(xs.reversed().reversed() == xs) <?> "Left identity"
^&&^
(xs == xs.reverse().reverse()) <?> "Right identity"
(xs == xs.reversed().reversed()) <?> "Right identity"
}
```

Expand Down
4 changes: 2 additions & 2 deletions Sources/SwiftCheck/Test.swift
Expand Up @@ -83,9 +83,9 @@
/// v v
/// property("The reverse of the reverse of an array is that array") <- forAll { (xs : [Int]) in
/// return
/// (xs.reverse().reverse() == xs) <?> "Reverse on the left"
/// (xs.reversed().reversed() == xs) <?> "Reverse on the left"
/// ^&&^
/// (xs == xs.reverse().reverse()) <?> "Reverse on the right"
/// (xs == xs.reversed().reversed()) <?> "Reverse on the right"
/// }
///
/// Why require types? For one, Swift cannot infer the types of local variables
Expand Down

0 comments on commit c3bb2da

Please sign in to comment.