diff --git a/README.md b/README.md index 73c33223..64687f81 100644 --- a/README.md +++ b/README.md @@ -2759,7 +2759,7 @@ Returns a slice with the pointer values or the fallback value. str1 := "hello" str2 := "world" -ptr := lo.FromSlicePtrOr([]*string{&str1, nil, &str2}, "fallback value") +ptr := lo.FromSlicePtrOr([]*string{&str1, &str2, nil}, "fallback value") // []string{"hello", "world", "fallback value"} ```