aboutsummaryrefslogtreecommitdiff
path: root/src/strconv/example_test.go
diff options
context:
space:
mode:
Diffstat (limited to 'src/strconv/example_test.go')
-rw-r--r--src/strconv/example_test.go9
1 files changed, 6 insertions, 3 deletions
diff --git a/src/strconv/example_test.go b/src/strconv/example_test.go
index 50f6b20fee..3b4cedbfd8 100644
--- a/src/strconv/example_test.go
+++ b/src/strconv/example_test.go
@@ -294,7 +294,8 @@ func ExampleParseUint() {
}
func ExampleQuote() {
- s := strconv.Quote(`"Fran & Freddie's Diner ☺"`) // there is a tab character inside the string literal
+ // This string literal contains a tab character.
+ s := strconv.Quote(`"Fran & Freddie's Diner ☺"`)
fmt.Println(s)
// Output:
@@ -338,7 +339,8 @@ func ExampleQuoteRuneToGraphic() {
}
func ExampleQuoteToASCII() {
- s := strconv.QuoteToASCII(`"Fran & Freddie's Diner ☺"`) // there is a tab character inside the string literal
+ // This string literal contains a tab character.
+ s := strconv.QuoteToASCII(`"Fran & Freddie's Diner ☺"`)
fmt.Println(s)
// Output:
@@ -349,7 +351,8 @@ func ExampleQuoteToGraphic() {
s := strconv.QuoteToGraphic("☺")
fmt.Println(s)
- s = strconv.QuoteToGraphic("This is a \u263a \u000a") // there is a tab character inside the string literal
+ // This string literal contains a tab character.
+ s = strconv.QuoteToGraphic("This is a \u263a \u000a")
fmt.Println(s)
s = strconv.QuoteToGraphic(`" This is a ☺ \n "`)