From f9cb271ba05007d693d3ed86b71a680599b5a46e Mon Sep 17 00:00:00 2001 From: Brian Wellington Date: Mon, 11 May 2020 09:03:46 -0700 Subject: [PATCH] Fix documentation typos. --- dns/rcode.py | 2 +- dns/zone.py | 2 +- doc/name-class.rst | 2 +- doc/name.rst | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/dns/rcode.py b/dns/rcode.py index 85f8c2cb..e7c1f282 100644 --- a/dns/rcode.py +++ b/dns/rcode.py @@ -21,7 +21,7 @@ import dns.exception #: No error NOERROR = 0 -#: Form error +#: Format error FORMERR = 1 #: Server failure SERVFAIL = 2 diff --git a/dns/zone.py b/dns/zone.py index c482763f..2a3f34a0 100644 --- a/dns/zone.py +++ b/dns/zone.py @@ -63,7 +63,7 @@ class Zone(object): A ``Zone`` is a mapping from names to nodes. The zone object may be treated like a Python dictionary, e.g. ``zone[name]`` will retrieve the node associated with that name. The *name* may be a - ``dns.name.Name object``, or it may be a string. In the either case, + ``dns.name.Name object``, or it may be a string. In either case, if the name is relative it is treated as relative to the origin of the zone. """ diff --git a/doc/name-class.rst b/doc/name-class.rst index 35276ed8..1a140811 100644 --- a/doc/name-class.rst +++ b/doc/name-class.rst @@ -9,7 +9,7 @@ The dns.name.Name Class and Predefined Names .. attribute:: labels A tuple of ``bytes`` in DNS wire format specifying the DNS - labels in the name, in order from least-signficiant label + labels in the name, in order from least-significant label (i.e. farthest from the origin) to most-significant label. .. data:: dns.name.root diff --git a/doc/name.rst b/doc/name.rst index 0cda588a..d97c041a 100644 --- a/doc/name.rst +++ b/doc/name.rst @@ -5,7 +5,7 @@ DNS Names ========= Objects of the dns.name.Name class represent an immutable domain name. -The representation is a tuple of labels, with each lable being a ``bytes`` +The representation is a tuple of labels, with each label being a ``bytes`` object in the DNS wire format. Typically names are not created by supplying the labels tuple directly, but rather by converting from DNS text format or the DNS wire format. -- 2.47.3