瀏覽代碼

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

Dean Karn 9 年之前
父節點
當前提交
e8c26d4107
共有 1 個文件被更改,包括 1 次插入1 次删除
  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