Explorar el Código

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

Dean Karn hace 9 años
padre
commit
e8c26d4107
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  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