Skip to content

Commit e8c26d4

Browse files
Dean KarnDean Karn
Dean Karn
authored and
Dean Karn
committed
Fix example not that GetTranslator() has multiple return values.
1 parent d72ff94 commit e8c26d4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

examples/basic/main.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ func main() {
2020
e := en.New()
2121
universalTraslator = ut.New(e, e, en_CA.New(), nl.New(), fr.New())
2222

23-
en := universalTraslator.GetTranslator("en")
23+
en, _ := universalTraslator.GetTranslator("en")
2424

2525
// generally used after parsing an http 'Accept-Language' header
2626
// and this will try to find a matching locale you support or

0 commit comments

Comments
 (0)