Skip to content

Commit f2415b7

Browse files
authored
fix: find? -> findRev? (#11514)
This PR fixes a small oversight in a docstring.
1 parent 455fd0b commit f2415b7

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Init/Data/List/Basic.lean

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1607,8 +1607,8 @@ such element is found.
16071607
`O(|l|)`.
16081608
16091609
Examples:
1610-
* `[7, 6, 5, 8, 1, 2, 6].find? (· < 5) = some 2`
1611-
* `[7, 6, 5, 8, 1, 2, 6].find? (· < 1) = none`
1610+
* `[7, 6, 5, 8, 1, 2, 6].findRev? (· < 5) = some 2`
1611+
* `[7, 6, 5, 8, 1, 2, 6].findRev? (· < 1) = none`
16121612
-/
16131613
def findRev? (p : α → Bool) : List α → Option α
16141614
| [] => none

0 commit comments

Comments
 (0)