fix: find? -> findRev? (#11514)

This PR fixes a small oversight in a docstring.
This commit is contained in:
Paul Reichert 2025-12-05 08:36:32 +01:00 committed by GitHub
parent 455fd0b448
commit f2415b7a9a
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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