updating some things

This commit is contained in:
Steven Degutis
2012-03-17 12:11:22 -05:00
parent 95e2dcf25d
commit 08bb6db1fa
2 changed files with 7 additions and 1 deletions

View File

@@ -24,7 +24,7 @@ func aboutStrings() {
assert(fmt.Sprintf("hello %s", __string__) == "hello world") // our old friend sprintf returns
assert(fmt.Sprintf("hello \"%s\"", "world") == __string__) // quoting is familiar
assert(fmt.Sprintf("hello %q", "world") == __string__) // although it can be done easilier
assert(fmt.Sprintf("hello %q", "world") == __string__) // although it can be done more easily
assert(fmt.Sprintf("your balance: %d and %0.2f", 3, 4.5589) == __string__) // "the root of all evil" is actually a misquotation, by the way
}