Browse Source

Fix example not that GetTranslator() has multiple return values.

Dean Karn 9 years ago
parent
commit
e8c26d4107
1 changed files with 1 additions and 1 deletions
  1. 1 1
      examples/basic/main.go

+ 1 - 1
examples/basic/main.go

@@ -20,7 +20,7 @@ func main() {
 	e := en.New()
 	universalTraslator = ut.New(e, e, en_CA.New(), nl.New(), fr.New())
 
-	en := universalTraslator.GetTranslator("en")
+	en, _ := universalTraslator.GetTranslator("en")
 
 	// generally used after parsing an http 'Accept-Language' header
 	// and this will try to find a matching locale you support or