From 0a5fe9e3cd3d560fe81ea332baa95967c565a135 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Asbj=C3=B8rn=20Sloth=20T=C3=B8nnesen?= Date: Thu, 18 Jul 2019 20:06:14 +0000 Subject: readme: minor fixes 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 | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) diff --git a/README.rst b/README.rst index 208ddbd..146ccca 100644 --- a/README.rst +++ b/README.rst @@ -361,7 +361,7 @@ Sets ``set:list()`` ~~~~~~~~~~~~~~ -list networks in set +List networks in set. :: @@ -370,7 +370,7 @@ list networks in set ``set:add(foo)`` ~~~~~~~~~~~~~~~~ -add network to set +Add network to set. :: @@ -383,7 +383,7 @@ add network to set ``set:remove(foo)`` ~~~~~~~~~~~~~~~~~~~ -remove network from set +Remove network from set. :: @@ -403,15 +403,19 @@ remove network from set inet('2001:db8:0:8000::/49'), } + foo:add(inet('2001:db8:0:4200::/56')) -- returns true + foo:list() -- returns { inet('2001:db8::/48') } + ``set:contains(foo)`` ~~~~~~~~~~~~~~~~~~~~~ -is network contained in set? +Is the network contained or equal to a network in the set? :: foo:contains(inet('2001:db8::')) -- returns true foo:contains(inet('2001:db8::/32')) -- returns false + foo:contains(inet('2001:db8::/48')) -- returns true foo:contains(inet('2001:db8:1:2:3:4:5:6')) -- returns false ``set:flush()`` @@ -421,7 +425,7 @@ Empties the set. :: foo:flush() -- returns true - foo:list() -- returns {} + foo:list() -- returns {} History ======= -- cgit v1.2.1