소스 검색

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