diff options
| author | Okash Khawaja <okash.khawaja@gmail.com> | 2016-04-12 00:01:51 +0100 |
|---|---|---|
| committer | Okash Khawaja <okash.khawaja@gmail.com> | 2016-04-12 00:01:51 +0100 |
| commit | 9984741d94772be1484033d711c1a674da38217a (patch) | |
| tree | 75658313ce77de90faa88429b9412437088b20da /src | |
| parent | 23ce5aeaa22b49d6649096b520b292a3626474ef (diff) | |
| download | luasocket-9984741d94772be1484033d711c1a674da38217a.tar.gz luasocket-9984741d94772be1484033d711c1a674da38217a.tar.bz2 luasocket-9984741d94772be1484033d711c1a674da38217a.zip | |
Update comments for url.unescape() function.
Diffstat (limited to 'src')
| -rw-r--r-- | src/url.lua | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/url.lua b/src/url.lua index fbd93d1..b59960a 100644 --- a/src/url.lua +++ b/src/url.lua | |||
| @@ -64,11 +64,11 @@ local function protect_segment(s) | |||
| 64 | end | 64 | end |
| 65 | 65 | ||
| 66 | ----------------------------------------------------------------------------- | 66 | ----------------------------------------------------------------------------- |
| 67 | -- Encodes a string into its escaped hexadecimal representation | 67 | -- Unencodes a escaped hexadecimal string into its binary representation |
| 68 | -- Input | 68 | -- Input |
| 69 | -- s: binary string to be encoded | 69 | -- s: escaped hexadecimal string to be unencoded |
| 70 | -- Returns | 70 | -- Returns |
| 71 | -- escaped representation of string binary | 71 | -- unescaped binary representation of escaped hexadecimal binary |
| 72 | ----------------------------------------------------------------------------- | 72 | ----------------------------------------------------------------------------- |
| 73 | function _M.unescape(s) | 73 | function _M.unescape(s) |
| 74 | return (string.gsub(s, "%%(%x%x)", function(hex) | 74 | return (string.gsub(s, "%%(%x%x)", function(hex) |
