Skip to content

Commit

Permalink
Fix import rule. Package should be ref
Browse files Browse the repository at this point in the history
Signed-off-by: Maas-Maarten Zeeman <mmzeeman@xs4all.nl>
  • Loading branch information
mmzeeman committed May 15, 2022
1 parent d239bbb commit c307a42
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/content/policy-reference.md
Original file line number Diff line number Diff line change
Expand Up @@ -1280,7 +1280,7 @@ Rego’s syntax is defined by the following grammar:
```ebnf
module = package { import } policy
package = "package" ref
import = "import" package [ "as" var ]
import = "import" ref [ "as" var ]
policy = { rule }
rule = [ "default" ] rule-head { rule-body }
rule-head = var [ "(" rule-args ")" ] [ "[" term "]" ] [ ( ":=" | "=" ) term ]
Expand Down

0 comments on commit c307a42

Please sign in to comment.