Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit dfd72bb

Browse files
committed
Issue #14814: fix some typos in howto/ipaddress.rst
1 parent 0e49749 commit dfd72bb

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

Doc/howto/ipaddress.rst

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ An Introduction to the ipaddress module
1919
Creating Address/Network/Interface objects
2020
==========================================
2121

22-
Since :mod:`ipaddress` is a module for inspecting and manipulating IP address,
22+
Since :mod:`ipaddress` is a module for inspecting and manipulating IP addresses,
2323
the first thing you'll want to do is create some objects. You can use
2424
:mod:`ipaddress` to create objects from strings and integers.
2525

@@ -183,10 +183,10 @@ Finding out how many individual addresses are in a network::
183183
>>> net6.numhosts
184184
4294967296
185185

186-
Iterating through the 'usable' addresses on a network::
186+
Iterating through the "usable" addresses on a network::
187187

188188
>>> net4 = ipaddress.ip_network('192.0.2.0/24')
189-
>>> for x in net4.iterhosts():
189+
>>> for x in net4.hosts():
190190
print(x)
191191
192.0.2.1
192192
192.0.2.2
@@ -294,7 +294,7 @@ Getting more detail when instance creation fails
294294
When creating address/network/interface objects using the version-agnostic
295295
factory functions, any errors will be reported as :exc:`ValueError` with
296296
a generic error message that simply says the passed in value was not
297-
recognised as an object of that type. The lack of a specific error is
297+
recognized as an object of that type. The lack of a specific error is
298298
because it's necessary to know whether the value is *supposed* to be IPv4
299299
or IPv6 in order to provide more detail on why it has been rejected.
300300

0 commit comments

Comments
 (0)