diff options
Diffstat (limited to 'lib')
-rw-r--r-- | lib/ipaddress/prefix.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/ipaddress/prefix.rb b/lib/ipaddress/prefix.rb index 96452de..aac2090 100644 --- a/lib/ipaddress/prefix.rb +++ b/lib/ipaddress/prefix.rb @@ -93,7 +93,7 @@ module IPAddress # def initialize(num) unless (0..32).include? num - raise ArgumentError, "Prefix must be in range 1..32, got: #{num}" + raise ArgumentError, "Prefix must be in range 0..32, got: #{num}" end super(num) end |