Skip to content

Commit ed91b33

Browse files
committed
Still document nil as part of the URI path, closes #11424
1 parent aeb2e07 commit ed91b33

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

lib/elixir/lib/uri.ex

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,11 +20,12 @@ defmodule URI do
2020
host: nil,
2121
port: nil
2222

23+
# TODO: Remove nil from path when we fully deprecate URI.parse on Elixir v1.17
2324
@type t :: %__MODULE__{
2425
authority: authority,
2526
fragment: nil | binary,
2627
host: nil | binary,
27-
path: binary,
28+
path: nil | binary,
2829
port: nil | :inet.port_number(),
2930
query: nil | binary,
3031
scheme: nil | binary,

0 commit comments

Comments
 (0)