File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -9,19 +9,19 @@ Lua module for [encoding/hex](https://pkg.go.dev/encoding/hex)
99``` lua
1010local hex = require (" hex" )
1111
12- s = hex . RawStdEncoding :encode_to_string (" foo\01 bar" )
12+ s = hex :encode_to_string (" foo\01 bar" )
1313print (s )
1414Zm9vAWJhcg
1515
16- s = hex . StdEncoding :encode_to_string (" foo\01 bar" )
16+ s = hex :encode_to_string (" foo\01 bar" )
1717print (s )
1818Zm9vAWJhcg ==
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" )
2121print (s )
2222dGhpcyBpcyBhIDx0YWc - 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" )
2525print (s )
2626dGhpcyBpcyBhIDx0YWc - IGFuZCBzaG91bGQgYmUgZW5jb2RlZA ==
2727
You can’t perform that action at this time.
0 commit comments