Skip to content

Commit d2ed14e

Browse files
committed
Fix the README for hex too.
1 parent 86506f7 commit d2ed14e

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

hex/README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,19 +9,19 @@ Lua module for [encoding/hex](https://pkg.go.dev/encoding/hex)
99
```lua
1010
local hex = require("hex")
1111

12-
s = hex.RawStdEncoding:encode_to_string("foo\01bar")
12+
s = hex:encode_to_string("foo\01bar")
1313
print(s)
1414
Zm9vAWJhcg
1515

16-
s = hex.StdEncoding:encode_to_string("foo\01bar")
16+
s = hex:encode_to_string("foo\01bar")
1717
print(s)
1818
Zm9vAWJhcg==
1919

20-
s = hex.RawURLEncoding:encode_to_string("this is a <tag> and should be encoded")
20+
s = hex:encode_to_string("this is a <tag> and should be encoded")
2121
print(s)
2222
dGhpcyBpcyBhIDx0YWc-IGFuZCBzaG91bGQgYmUgZW5jb2RlZA
2323

24-
s = hex.URLEncoding:encode_to_string("this is a <tag> and should be encoded")
24+
s = hex:encode_to_string("this is a <tag> and should be encoded")
2525
print(s)
2626
dGhpcyBpcyBhIDx0YWc-IGFuZCBzaG91bGQgYmUgZW5jb2RlZA==
2727

0 commit comments

Comments
 (0)