Commit 0d25e3db authored by Richard Hartmann's avatar Richard Hartmann

operators.md: Switch order in operator precedence list

parent e23674ac
......@@ -207,13 +207,13 @@ applications, we could simply write:
## Binary operator precedence
The following list shows the precedence of binary operators in Prometheus, from
lowest to highest.
highest to lowest.
1. `OR`
2. `AND`
1. `*`, `/`, `%`
2. `+`, `-`
3. `==`, `!=`, `<=`, `<`, `>=`, `>`
4. `+`, `-`
5. `*`, `/`, `%`
4. `AND`
5. `OR`
Operators on the same precedence level are left-associative. For example,
`2 * 3 % 2` is equivalent to `(2 * 3) % 2`.
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment