summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJosé Valim <jose.valim@dashbit.co>2021-12-02 23:23:51 +0100
committerJosé Valim <jose.valim@dashbit.co>2021-12-02 23:23:54 +0100
commit6eb00ca7d2bddd9892dc2ef0dea2aef1c99f7e32 (patch)
tree89a7e05c449613a42e927b1759de0933a713bdac
parentc2578c9370d76cc73582f9331e2e869d6943d7ce (diff)
downloadelixir-6eb00ca7d2bddd9892dc2ef0dea2aef1c99f7e32.tar.gz
Still document nil as part of the URI path, closes #11424
-rw-r--r--lib/elixir/lib/uri.ex3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/elixir/lib/uri.ex b/lib/elixir/lib/uri.ex
index 94021c5c9..382fa3793 100644
--- a/lib/elixir/lib/uri.ex
+++ b/lib/elixir/lib/uri.ex
@@ -20,11 +20,12 @@ defmodule URI do
host: nil,
port: nil
+ # TODO: Remove nil from path when we fully deprecate URI.parse on Elixir v1.17
@type t :: %__MODULE__{
authority: authority,
fragment: nil | binary,
host: nil | binary,
- path: binary,
+ path: nil | binary,
port: nil | :inet.port_number(),
query: nil | binary,
scheme: nil | binary,