Skip to content

Commit 2a74434

Browse files
authored
Update README.md
1 parent 6e4cd89 commit 2a74434

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -947,7 +947,7 @@ values := lo.Values[string, int](map[string]int{"foo": 1, "bar": 2})
947947

948948
### ValueOr
949949

950-
Creates an array of the map values.
950+
Returns the value of the given key or the fallback value if the key is not present.
951951

952952
```go
953953
value := lo.ValueOr[string, int](map[string]int{"foo": 1, "bar": 2}, "foo", 42)

0 commit comments

Comments
 (0)