Skip to content

Commit

Permalink
doc: improve doc
Browse files Browse the repository at this point in the history
  • Loading branch information
samber committed Oct 10, 2022
1 parent e3f7dab commit a2c5202
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Expand Up @@ -11,6 +11,7 @@ Adding:
- lo.CountValuesBy
- lo.MapEntries
- lo.Sum
- lo.Interleave
- TupleX.Unpack()

## 1.31.0 (2022-10-06)
Expand Down
4 changes: 2 additions & 2 deletions README.md
Expand Up @@ -47,8 +47,8 @@ import (
Then use one of the helpers below:

```go
names := lo.Uniq[string]([]string{"Samuel", "Marc", "Samuel"})
// []string{"Samuel", "Marc"}
names := lo.Uniq[string]([]string{"Samuel", "John", "Samuel"})
// []string{"Samuel", "John"}
```

Most of the time, the compiler will be able to infer the type so that you can call: `lo.Uniq([]string{...})`.
Expand Down

0 comments on commit a2c5202

Please sign in to comment.