From 2614dbb4e77c8d87ad6d691e7576758ce3cf8cdd Mon Sep 17 00:00:00 2001 From: Otto Moerbeek Date: Mon, 17 Aug 2020 15:42:07 +0200 Subject: [PATCH] Fix docs for DNSName::equal() Since overloading Lua wrapper functions does not seem to be possible, fix docs for DNSName:equal(). But note that == is defined for DNSNames. Fixes #7510 --- pdns/recursordist/docs/lua-scripting/dnsname.rst | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/pdns/recursordist/docs/lua-scripting/dnsname.rst b/pdns/recursordist/docs/lua-scripting/dnsname.rst index c91671a730..0014afe8ff 100644 --- a/pdns/recursordist/docs/lua-scripting/dnsname.rst +++ b/pdns/recursordist/docs/lua-scripting/dnsname.rst @@ -50,8 +50,10 @@ A small example of the functionality of a :class:`DNSName` is shown below: .. method:: DNSName:equal(name) -> bool Returns true when both names are equal for the DNS, i.e case insensitive. + + To compare two ``DNSName`` objects, use ``==``. - :param DNSName name: The name to compare against. + :param DNSName string: The name to compare against. .. method:: DNSName:isPartOf(name) -> bool -- 2.47.2