Skip to content

Commit ea672cc

Browse files
authored
Fix spec of PartitionSupervisor.partitions/1 (#15151)
1 parent 4ad3e0a commit ea672cc

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

lib/elixir/lib/partition_supervisor.ex

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -421,7 +421,7 @@ defmodule PartitionSupervisor do
421421
Returns the number of partitions for the partition supervisor.
422422
"""
423423
@doc since: "1.14.0"
424-
@spec partitions(name()) :: pos_integer()
424+
@spec partitions(name()) :: non_neg_integer()
425425
def partitions(name) do
426426
name |> table() |> partitions(name)
427427
end

0 commit comments

Comments
 (0)