summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFrancis Luong (Franco) <franco@definefunk.com>2017-08-30 07:52:34 -0400
committerGitHub <noreply@github.com>2017-08-30 07:52:34 -0400
commit5712182757e385ac9e7872f18f8b0bdd91de1e87 (patch)
tree18e7cca02c04a46a470f5f3a001950418a5f1a91
parentc534ea04cb6b69d10878b3049d494f06f411fc6b (diff)
parent7a6f1c1406bb2556c046722138629a18705e27d7 (diff)
downloadipaddress-5712182757e385ac9e7872f18f8b0bdd91de1e87.tar.gz
Merge pull request #35 from havenwood/patch-1
Fix method name typo in `#subnet` docs example.
-rw-r--r--lib/ipaddress/ipv4.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/ipaddress/ipv4.rb b/lib/ipaddress/ipv4.rb
index 7051678..19ab14c 100644
--- a/lib/ipaddress/ipv4.rb
+++ b/lib/ipaddress/ipv4.rb
@@ -773,7 +773,7 @@ module IPAddress;
#
# we can calculate the subnets with a /26 prefix
#
- # ip.subnets(26).map{&:to_string)
+ # ip.subnet(26).map{&:to_string)
# #=> ["172.16.10.0/26", "172.16.10.64/26",
# "172.16.10.128/26", "172.16.10.192/26"]
#