From: Brian Wellington Date: Mon, 11 May 2020 16:03:46 +0000 (-0700) Subject: Fix documentation typos. X-Git-Tag: v2.0.0rc1~230 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f9cb271ba05007d693d3ed86b71a680599b5a46e;p=thirdparty%2Fdnspython.git Fix documentation typos. --- 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.