commit | 89d8163045d54532699200605d207a8b0192a887 | [log] [tgz] |
---|---|---|
author | Gabriel Aszalos <gabriel.aszalos@gmail.com> | Tue Sep 19 14:25:21 2017 +0200 |
committer | Ian Lance Taylor <iant@golang.org> | Tue Sep 19 13:14:30 2017 +0000 |
tree | b4ee1cc44a967868bd7c73e5a958326319e8ac88 | |
parent | 6e1e961203eda3263aea11e2bcb3f8b7fe5df5c7 [diff] |
[x/blog] content: correct mistake in "Slices" article Change-Id: Ie994d952ff94f05c63fc63389ec359d3e9a902e9 Reviewed-on: https://go-review.googlesource.com/64590 Reviewed-by: Ian Lance Taylor <iant@golang.org> X-Blog-Commit: 1caafe26a32b5423a75df95e4c3e9ccd2c3a27d3
diff --git a/blog/content/go-slices-usage-and-internals.article b/blog/content/go-slices-usage-and-internals.article index d4a50fd..4ba1365 100644 --- a/blog/content/go-slices-usage-and-internals.article +++ b/blog/content/go-slices-usage-and-internals.article
@@ -190,7 +190,7 @@ Since the zero value of a slice (`nil`) acts like a zero-length slice, you can declare a slice variable and then append to it in a loop: // Filter returns a new slice holding only - // the elements of s that satisfy f() + // the elements of s that satisfy fn() func Filter(s []int, fn func(int) bool) []int { var p []int // == nil for _, v := range s {