Skip to content

Commit

Permalink
fix: typo on comment of SliceToMap function (#213)
Browse files Browse the repository at this point in the history
  • Loading branch information
yokmt authored Sep 15, 2022
1 parent bfae21c commit c3c7852
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion slice.go
Original file line number Diff line number Diff line change
Expand Up @@ -295,7 +295,7 @@ func Associate[T any, K comparable, V any](collection []T, transform func(T) (K,
return result
}

// Associate returns a map containing key-value pairs provided by transform function applied to elements of the given slice.
// SliceToMap returns a map containing key-value pairs provided by transform function applied to elements of the given slice.
// If any of two pairs would have the same key the last one gets added to the map.
// The order of keys in returned map is not specified and is not guaranteed to be the same from the original array.
// Alias of Associate().
Expand Down

0 comments on commit c3c7852

Please sign in to comment.