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/testing/testing.hash b/examples/testing/testing.hash index e3a2516..3a02134 100644 --- a/examples/testing/testing.hash +++ b/examples/testing/testing.hash @@ -1,2 +1,2 @@ -017c9d7ba927cdfbcef1643e86f9b8022f13fc31 -jCRgtgRwie3 +8e15d97f54c34ac1546c2ec6589cc1b60ff27f80 +GFuPdlBlyMU 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 diff --git a/examples/xml/xml.hash b/examples/xml/xml.hash index aef8f35..b9354ae 100644 --- a/examples/xml/xml.hash +++ b/examples/xml/xml.hash @@ -1,2 +1,2 @@ -f42dec8593a45931145f0a55f104f2ca34b2d112 -wlkywJsuWqL +d5da1784f3aa0bbba452d21c70833621a62159f4 +RsNLhMBazeX diff --git a/public/testing b/public/testing index 6b0a3aa..385028c 100644 --- a/public/testing +++ b/public/testing @@ -47,7 +47,7 @@ typically lives in the same package as the code it tests.
package main
intutils_test.go
.
func IntMin(a, b int) int {
if a < b {
return a
- } else {
- return b
}
+ return b
}
go test -v
.