Commit 5071bd23 authored by Fabian Reinartz's avatar Fabian Reinartz

Merge pull request #281 from RichiH/patch-3

operators.md: Switch order in operator precedence list
parents e23674ac 0d25e3db
......@@ -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