Skip to content
This repository has been archived by the owner on Mar 14, 2024. It is now read-only.

Commit

Permalink
map: fix typo in comment
Browse files Browse the repository at this point in the history
  • Loading branch information
Bryan C. Mills committed Jun 11, 2020
1 parent 62eb6d8 commit 668ad93
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion map.go2
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
package main

// Map returns a new slice containig the result of applying f to each element in src.
// Map returns a new slice containing the result of applying f to each element
// in src.
func Map(type T1, T2)(src []T1, f func(T1) T2) []T2 {
dst := make([]T2, 0, len(src))
for _, x := range src {
Expand Down

0 comments on commit 668ad93

Please sign in to comment.