Subject: | Documentation bug for nth() |
Date: | Thu, 2 May 2013 13:38:23 +0200 |
To: | bug-NetAddr-IP [...] rt.cpan.org |
From: | Anton Berezin <tobez [...] tobez.org> |
Hi,
In the description of the new behavior of nth(), there is a documentation
bug for /31. Currently, the docs stay that:
NetAddr::IP->new('10/31')->nth(0) == 10.0.0.0/32
NetAddr::IP->new('10/31')->nth(1) == 10.0.0.1/32
while the (expected) reality matches
NetAddr::IP->new('10/31')->nth(0) == 10.0.0.0/31
NetAddr::IP->new('10/31')->nth(1) == 10.0.0.1/31
Thanks,
\Anton.
--
Our society can survive even a large amount of irrational regulation.
-- John McCarthy