Add <code> style to 'nil' and Remove redundant space

This commit is contained in:
oohira 2017-01-14 00:36:06 +09:00
parent d4b81ba058
commit 5f9b7a263d

View File

@ -23,7 +23,7 @@ func f1(arg int) (int, error) {
} }
// A nil value in the error position indicates that // A `nil` value in the error position indicates that
// there was no error. // there was no error.
return arg + 3, nil return arg + 3, nil
} }
@ -74,7 +74,7 @@ func main() {
} }
// If you want to programmatically use the data in // If you want to programmatically use the data in
// a custom error, you'll need to get the error as an // a custom error, you'll need to get the error as an
// instance of the custom error type via type // instance of the custom error type via type
// assertion. // assertion.
_, e := f2(42) _, e := f2(42)