mirror of
https://github.com/golang/go
synced 2024-11-17 08:14:48 -07:00
02deb77f6d
println with no arguments accidentally doesn't print a newline. Introduced at CL 55097 Fixes #21808 Change-Id: I9fc7b4271b9b31e4c9b6078f055195dc3907b62c Reviewed-on: https://go-review.googlesource.com/62390 Run-TryBot: Keith Randall <khr@golang.org> Reviewed-by: Emmanuel Odeke <emm.odeke@gmail.com> TryBot-Result: Gobot Gobot <gobot@golang.org>
18 lines
304 B
Go
18 lines
304 B
Go
// run
|
|
|
|
// Copyright 2017 The Go Authors. All rights reserved.
|
|
// Use of this source code is governed by a BSD-style
|
|
// license that can be found in the LICENSE file.
|
|
|
|
// Make sure println() prints a blank line.
|
|
|
|
package main
|
|
|
|
import "fmt"
|
|
|
|
func main() {
|
|
fmt.Println("A")
|
|
println()
|
|
fmt.Println("B")
|
|
}
|