From beeb2315622e9b282b2bbec1d68fee5c87ed79cc Mon Sep 17 00:00:00 2001 From: andrew <andrewpcfield@gmail.com> Date: Mon, 9 Mar 2020 12:14:31 +0200 Subject: [PATCH] Couple of suggestions --- examples/testing/main_test.go | 3 +-- examples/xml/xml.go | 2 +- 2 files changed, 2 insertions(+), 3 deletions(-) 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