Skip to content

Commit c6ced33

Browse files
authored
Merge pull request #33 from matthewvalimaki/master
Fix example not handling multiple return values
2 parents 0adfbe4 + 21fee64 commit c6ced33

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ func main() {
2626
hd := hashids.NewData()
2727
hd.Salt = "this is my salt"
2828
hd.MinLength = 30
29-
h := hashids.NewWithData(hd)
29+
h, _ := hashids.NewWithData(hd)
3030
e, _ := h.Encode([]int{45, 434, 1313, 99})
3131
fmt.Println(e)
3232
d, _ := h.DecodeWithError(e)

0 commit comments

Comments
 (0)