Skip to content

Commit

Permalink
docs/website: add 's' to the word public_server
Browse files Browse the repository at this point in the history
Signed-off-by: Trung Nguyen <[email protected]>
  • Loading branch information
trungnguyen committed Jan 3, 2024
1 parent 90ec389 commit f374f69
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions docs/content/_index.md
Original file line number Diff line number Diff line change
Expand Up @@ -895,7 +895,7 @@ allow if { # allow is true if...
violation contains server.id if { # a server is in the violation set if...
some server
public_server[server] # it exists in the 'public_server' set and...
public_servers[server] # it exists in the 'public_servers' set and...
server.protocols[_] == "http" # it contains the insecure "http" protocol.
}
Expand All @@ -904,7 +904,7 @@ violation contains server.id if { # a server is in the violati
server.protocols[_] == "telnet" # it contains the "telnet" protocol.
}
public_server contains server if { # a server exists in the public_server set if...
public_servers contains server if { # a server exists in the 'public_servers' set if...
some i, j
server := input.servers[_] # it exists in the input.servers collection and...
server.ports[_] == input.ports[i].id # it references a port in the input.ports collection and...
Expand Down Expand Up @@ -1002,7 +1002,7 @@ opa run example.rego repl.input:input.json
```

```ruby
> data.example.public_server[s]
> data.example.public_servers[s]
```

{{< info >}}
Expand Down

0 comments on commit f374f69

Please sign in to comment.