Commit 6405ab0f authored by Rob Pike's avatar Rob Pike

fmt: delete erroneous sentence about return value for Sprint*.

R=rsc
CC=golang-dev
https://golang.org/cl/2160041
parent e430ee6c
...@@ -149,7 +149,6 @@ func Printf(format string, a ...interface{}) (n int, errno os.Error) { ...@@ -149,7 +149,6 @@ func Printf(format string, a ...interface{}) (n int, errno os.Error) {
} }
// Sprintf formats according to a format specifier and returns the resulting string. // Sprintf formats according to a format specifier and returns the resulting string.
// It returns the number of bytes written.
func Sprintf(format string, a ...interface{}) string { func Sprintf(format string, a ...interface{}) string {
p := newPrinter() p := newPrinter()
p.doPrintf(format, a) p.doPrintf(format, a)
...@@ -181,7 +180,6 @@ func Print(a ...interface{}) (n int, errno os.Error) { ...@@ -181,7 +180,6 @@ func Print(a ...interface{}) (n int, errno os.Error) {
// Sprint formats using the default formats for its operands and returns the resulting string. // Sprint formats using the default formats for its operands and returns the resulting string.
// Spaces are added between operands when neither is a string. // Spaces are added between operands when neither is a string.
// It returns the number of bytes written.
func Sprint(a ...interface{}) string { func Sprint(a ...interface{}) string {
p := newPrinter() p := newPrinter()
p.doPrint(a, false, false) p.doPrint(a, false, false)
...@@ -215,7 +213,6 @@ func Println(a ...interface{}) (n int, errno os.Error) { ...@@ -215,7 +213,6 @@ func Println(a ...interface{}) (n int, errno os.Error) {
// Sprintln formats using the default formats for its operands and returns the resulting string. // Sprintln formats using the default formats for its operands and returns the resulting string.
// Spaces are always added between operands and a newline is appended. // Spaces are always added between operands and a newline is appended.
// It returns the number of bytes written.
func Sprintln(a ...interface{}) string { func Sprintln(a ...interface{}) string {
p := newPrinter() p := newPrinter()
p.doPrint(a, true, true) p.doPrint(a, true, true)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment