Merge pull request #23660 from goltermann/vetclean
Automatic merge from submit-queue Additional go vet fixes Mostly: - pass lock by value - bad syntax for struct tag value - example functions not formatted properly
This commit is contained in:
@@ -21,7 +21,7 @@ import (
|
||||
"os"
|
||||
)
|
||||
|
||||
func ExampleTrailingNewline() {
|
||||
func Example_trailingNewline() {
|
||||
ld := NewLineDelimiter(os.Stdout, "|")
|
||||
defer ld.Flush()
|
||||
fmt.Fprint(ld, " Hello \n World \n")
|
||||
@@ -30,7 +30,7 @@ func ExampleTrailingNewline() {
|
||||
// | World |
|
||||
// ||
|
||||
}
|
||||
func ExampleNoTrailingNewline() {
|
||||
func Example_noTrailingNewline() {
|
||||
ld := NewLineDelimiter(os.Stdout, "|")
|
||||
defer ld.Flush()
|
||||
fmt.Fprint(ld, " Hello \n World ")
|
||||
|
Reference in New Issue
Block a user