updating some things
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user