fix: find? -> findRev? (#11514)
This PR fixes a small oversight in a docstring.
This commit is contained in:
parent
455fd0b448
commit
f2415b7a9a
1 changed files with 2 additions and 2 deletions
|
|
@ -1607,8 +1607,8 @@ such element is found.
|
|||
`O(|l|)`.
|
||||
|
||||
Examples:
|
||||
* `[7, 6, 5, 8, 1, 2, 6].find? (· < 5) = some 2`
|
||||
* `[7, 6, 5, 8, 1, 2, 6].find? (· < 1) = none`
|
||||
* `[7, 6, 5, 8, 1, 2, 6].findRev? (· < 5) = some 2`
|
||||
* `[7, 6, 5, 8, 1, 2, 6].findRev? (· < 1) = none`
|
||||
-/
|
||||
def findRev? (p : α → Bool) : List α → Option α
|
||||
| [] => none
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue