]> git.ipfire.org Git - thirdparty/nftables.git/commitdiff
doc: fix syntax for RULES
authorMáté Eckl <ecklm94@gmail.com>
Mon, 6 Aug 2018 18:58:19 +0000 (20:58 +0200)
committerPablo Neira Ayuso <pablo@netfilter.org>
Tue, 7 Aug 2018 16:09:48 +0000 (18:09 +0200)
[] means optional but 'add' or 'insert' is not optional one of them is required
which is usually signed with {} braces.

Signed-off-by: Máté Eckl <ecklm94@gmail.com>
Acked-by: Duncan Roe <duncan_roe@optusnet.com.au>
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
doc/nft.txt

index 20ae54be9318bc5f0387005ed07b6dd370d141e6..749529687a9b8a6ca66f84ed0b810b959c12c1c6 100644 (file)
@@ -356,7 +356,7 @@ are *accept* (which is the default) or *drop*.
 RULES
 -----
 [verse]
-[add | insert] *rule* ['family'] 'table' 'chain' [ {handle | position} 'handle' | index 'index' ] 'statement'...
+{add | insert} *rule* ['family'] 'table' 'chain' [ {handle | position} 'handle' | index 'index' ] 'statement'...
 replace *rule* ['family'] 'table' 'chain' handle 'handle' 'statement'...
 delete *rule* ['family'] 'table' 'chain' handle 'handle'