diff options
author | Marco Ceresa <ceresa@gmail.com> | 2010-03-11 15:20:59 +0000 |
---|---|---|
committer | Marco Ceresa <ceresa@gmail.com> | 2010-03-11 15:20:59 +0000 |
commit | 56273314cd614cc3312d0f552caeb3f6e2f56d2b (patch) | |
tree | ee013262f8faa7bbe70802d04502694153272fe7 /lib | |
parent | 92d87502c24a8d3529a1468b2a35249cbc565009 (diff) | |
download | ipaddress-56273314cd614cc3312d0f552caeb3f6e2f56d2b.tar.gz |
Completed tests for ipaddress
Diffstat (limited to 'lib')
-rw-r--r-- | lib/ipaddress/ipv4.rb | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/ipaddress/ipv4.rb b/lib/ipaddress/ipv4.rb index 682367c..823d216 100644 --- a/lib/ipaddress/ipv4.rb +++ b/lib/ipaddress/ipv4.rb @@ -519,11 +519,11 @@ module IPAddress; # method will calculate the network from the IP and then # subnet it. # - # If +num+ is an even number, the resulting networks will be + # If +subnets+ is an even number, the resulting networks will be # divided evenly from the supernet. # # network = IPAddress("172.16.10.0/24") - # network / 4 + # network / 4 # implies map{|i| i.to_s} # #=> ["172.16.10.0/26", # "172.16.10.64/26", # "172.16.10.128/26", @@ -534,7 +534,7 @@ module IPAddress; # a last network with the remaining addresses. # # network = IPAddress("172.16.10.0/24") - # network / 3 + # network / 3 # implies map{|i| i.to_s} # #=> ["172.16.10.0/26", # "172.16.10.64/26", # "172.16.10.128/25"] |