Skip to content

Commit

Permalink
fix readme
Browse files Browse the repository at this point in the history
  • Loading branch information
samber committed Jun 27, 2024
1 parent 5aa64ef commit 9f52970
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2289,7 +2289,7 @@ last, ok := lo.Last([]int{})
// false
```

### FirstOrEmpty
### LastOrEmpty

Returns the first element of a collection or zero value if empty.

Expand All @@ -2300,7 +2300,7 @@ last := lo.LastOrEmpty([]int{1, 2, 3})
last := lo.LastOrEmpty([]int{})
// 0
```
### FirstOr
### LastOr

Returns the first element of a collection or the fallback value if empty.

Expand Down

0 comments on commit 9f52970

Please sign in to comment.