From a2c520241f264e53f2a7d372af72af95fb7d2696 Mon Sep 17 00:00:00 2001 From: Samuel Berthe Date: Mon, 10 Oct 2022 23:31:01 +0200 Subject: [PATCH] doc: improve doc --- CHANGELOG.md | 1 + README.md | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index dfeadb5e..743a1eb4 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -11,6 +11,7 @@ Adding: - lo.CountValuesBy - lo.MapEntries - lo.Sum +- lo.Interleave - TupleX.Unpack() ## 1.31.0 (2022-10-06) diff --git a/README.md b/README.md index b3661cda..48cd1cba 100644 --- a/README.md +++ b/README.md @@ -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{...})`.