We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 85e2845 + 60c4ede commit 228b20eCopy full SHA for 228b20e
lib/elixir/lib/uri.ex
@@ -102,7 +102,7 @@ defmodule URI do
102
end
103
104
@doc """
105
- Percent (URL) encodes a URI.
+ Percent-escape a URI.
106
"""
107
def encode(s), do: bc(<<c>> inbits s, do: <<percent(c) :: binary>>)
108
@@ -124,7 +124,7 @@ defmodule URI do
124
defp hex(n), do: <<n + ?A - 10>>
125
126
127
- Unpercent (URL) decodes a URI.
+ Percent-unescape a URI.
128
129
def decode(<<?%, hex1, hex2, tail :: binary >>) do
130
<< bsl(hex2dec(hex1), 4) + hex2dec(hex2) >> <> decode(tail)
0 commit comments