Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(203)

Delta Between Two Patch Sets: src/pkg/testing/example_test.go

Issue 13469045: code review 13469045: testing: strip per-line whitespace during example outpu... (Closed)
Left Patch Set: Created 10 years, 6 months ago
Right Patch Set: diff -r 24bc2c8febe3 https://code.google.com/p/go Created 10 years, 3 months ago
Left:
Right:
Use n/p to move between diff chunks; N/P to move between comments. Please Sign in to add in-line comments.
Jump to:
Right: Side by side diff | Download
« no previous file with change/comment | « src/pkg/testing/example.go ('k') | no next file » | no next file with change/comment »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
LEFTRIGHT
(no file at all)
1 // Copyright 2013 The Go Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style
3 // license that can be found in the LICENSE file.
4
5 package testing_test
6
7 import "fmt"
8
9 // This example tests that testing correctly
10 // handles whitespace in examples.
11 // https://golang.org/issue/6416
12 func Example_whitespace() {
13 fmt.Println("\n\nWhereof one cannot speak, \nthereof one must be silent. \n\n")
14 // Output:
15 // Whereof one cannot speak,
16 // thereof one must be silent.
17 }
LEFTRIGHT

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b