From 7b53e32e0bfda3bf63c608a83a46a75c7d2e969f Mon Sep 17 00:00:00 2001 From: Robin Eklind Date: Mon, 16 Dec 2013 10:40:28 -0800 Subject: [PATCH] strings: Update Trim example. Use an input which better shows that behaviour of the function. Only leading and trailing runes are trimed, not intermediate ones. R=golang-dev, bradfitz CC=golang-dev https://golang.org/cl/42390043 --- src/pkg/strings/example_test.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/pkg/strings/example_test.go b/src/pkg/strings/example_test.go index ccfc4172c3..7350131b85 100644 --- a/src/pkg/strings/example_test.go +++ b/src/pkg/strings/example_test.go @@ -150,8 +150,8 @@ func ExampleToTitle() { } func ExampleTrim() { - fmt.Printf("[%q]", strings.Trim(" !!! Achtung !!! ", "! ")) - // Output: ["Achtung"] + fmt.Printf("[%q]", strings.Trim(" !!! Achtung! Achtung! !!! ", "! ")) + // Output: ["Achtung! Achtung"] } func ExampleMap() { -- 2.48.1