From de97a7a8473f68eff527c1ec6fb2482ba3d31523 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Asbj=C3=B8rn=20Sloth=20T=C3=B8nnesen?= Date: Sun, 28 Jul 2019 16:09:12 +0000 Subject: set: contains: return the matching network MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Asbjørn Sloth Tønnesen --- README.rst | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'README.rst') diff --git a/README.rst b/README.rst index a6dfbc6..b37414a 100644 --- a/README.rst +++ b/README.rst @@ -474,13 +474,14 @@ Remove network from set. ``set:contains(foo)`` ~~~~~~~~~~~~~~~~~~~~~ -Is the network contained or equal to a network in the set? +If the network is contained or equal to a network in the set, then +the matching network will be returned, otherwise false is. :: - foo:contains(inet('2001:db8::')) -- returns true + foo:contains(inet('2001:db8::')) -- returns inet('2001:db8::/48') foo:contains(inet('2001:db8::/32')) -- returns false - foo:contains(inet('2001:db8::/48')) -- returns true + foo:contains(inet('2001:db8::/48')) -- returns inet('2001:db8::/48') foo:contains(inet('2001:db8:1:2:3:4:5:6')) -- returns false ``set:flush()`` -- cgit v1.2.1