From 13fabad2440bf4052d221d73c904ad77aa3676bf Mon Sep 17 00:00:00 2001 From: Charlie Tonneslan Date: Sun, 17 May 2026 09:57:17 -0400 Subject: [PATCH] docs(concat): use lo.Concat in the core/concat example The doc page for Concat showed a snippet calling lo.Flatten instead. Swap it for the actual helper the page documents. Closes #859. Signed-off-by: Charlie Tonneslan --- docs/data/core-concat.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/data/core-concat.md b/docs/data/core-concat.md index 12c11fbf..8cb48e53 100644 --- a/docs/data/core-concat.md +++ b/docs/data/core-concat.md @@ -21,6 +21,6 @@ Returns a new slice containing all the elements in collections. Concat conserves ```go list1 := []int{0, 1} list2 := []int{2, 3, 4, 5} -flat := lo.Flatten(list1, list2) +concat := lo.Concat(list1, list2) // []int{0, 1, 2, 3, 4, 5} ```