diff --git a/examples/testing/main_test.go b/examples/testing/main_test.go index 3bcdd6e..c91540f 100644 --- a/examples/testing/main_test.go +++ b/examples/testing/main_test.go @@ -21,9 +21,8 @@ import ( func IntMin(a, b int) int { if a < b { return a - } else { - return b } + return b } // A test is created by writing a function with a name diff --git a/examples/xml/xml.go b/examples/xml/xml.go index e545106..9870377 100644 --- a/examples/xml/xml.go +++ b/examples/xml/xml.go @@ -8,7 +8,7 @@ import ( "fmt" ) -// This type will be mapped to XML. Similarly to the +// Plant will be mapped to XML. Similarly to the // JSON examples, field tags contain directives for the // encoder and decoder. Here we use some special features // of the XML package: the `XMLName` field name dictates