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

Delta Between Two Patch Sets: src/pkg/go/printer/testdata/comments.input

Issue 4536063: code review 4536063: pkg: spelling tweaks, A-H (Closed)
Left Patch Set: Created 13 years, 11 months ago
Right Patch Set: diff -r 4ce4c75f9bb5 https://go.googlecode.com/hg/ Created 13 years, 11 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
LEFTRIGHT
(no file at all)
1 // Copyright 2009 The Go Authors. All rights reserved. 1 // Copyright 2009 The Go Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style 2 // Use of this source code is governed by a BSD-style
3 // license that can be found in the LICENSE file. 3 // license that can be found in the LICENSE file.
4 4
5 // This is a package for testing comment placement by go/printer. 5 // This is a package for testing comment placement by go/printer.
6 // 6 //
7 package main 7 package main
8 8
9 import "fmt" // fmt 9 import "fmt" // fmt
10 10
(...skipping 416 matching lines...) Expand 10 before | Expand all | Expand 10 after
427 func _() { 427 func _() {
428 _ = 0 428 _ = 0
429 /* closing curly brace should be on new line */ } 429 /* closing curly brace should be on new line */ }
430 430
431 func _() { 431 func _() {
432 _ = []int{0, 1 /* don't introduce a newline after this comment - was iss ue 1365 */} 432 _ = []int{0, 1 /* don't introduce a newline after this comment - was iss ue 1365 */}
433 } 433 }
434 434
435 435
436 // Comments immediately adjacent to punctuation (for which the go/printer 436 // Comments immediately adjacent to punctuation (for which the go/printer
437 // may obly have estimated position information) must remain after the punctuati on. 437 // may only have estimated position information) must remain after the punctuati on.
438 func _() { 438 func _() {
439 _ = T{ 439 _ = T{
440 1, // comment after comma 440 1, // comment after comma
441 2, /* comment after comma */ 441 2, /* comment after comma */
442 3 , // comment after comma 442 3 , // comment after comma
443 } 443 }
444 _ = T{ 444 _ = T{
445 1 ,// comment after comma 445 1 ,// comment after comma
446 2 ,/* comment after comma */ 446 2 ,/* comment after comma */
447 3,// comment after comma 447 3,// comment after comma
(...skipping 26 matching lines...) Expand all
474 var ftable *bufio.Writer // y.go file 474 var ftable *bufio.Writer // y.go file
475 var foutput *bufio.Writer // y.output file 475 var foutput *bufio.Writer // y.output file
476 476
477 var oflag string // -o [y.go] - y.go file 477 var oflag string // -o [y.go] - y.go file
478 var vflag string // -v [y.output] - y.output file 478 var vflag string // -v [y.output] - y.output file
479 var lflag bool // -l - disable line directives 479 var lflag bool // -l - disable line directives
480 } 480 }
481 481
482 482
483 /* This comment is the last entry in this file. It must be printed and should be followed by a newline */ 483 /* This comment is the last entry in this file. It must be printed and should be followed by a newline */
LEFTRIGHT

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