Skip to content

Commit 70ccf57

Browse files
committed
Also document min and max on guards guide
1 parent 13285e9 commit 70ccf57

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/elixir/pages/references/patterns-and-guards.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -277,7 +277,7 @@ Not all expressions are allowed in guard clauses, but only a handful of them. Th
277277
You can find the built-in list of guards [in the `Kernel` module](`Kernel#guards`). Here is an overview:
278278

279279
* comparison operators ([`==`](`==/2`), [`!=`](`!=/2`), [`===`](`===/2`), [`!==`](`!==/2`),
280-
[`<`](`</2`), [`<=`](`<=/2`), [`>`](`>/2`), [`>=`](`>=/2`))
280+
[`<`](`</2`), [`<=`](`<=/2`), [`>`](`>/2`), [`>=`](`>=/2`)), [`max`](`max/2`), [`min`](`min/2`)
281281
* strictly boolean operators ([`and`](`and/2`), [`or`](`or/2`), [`not`](`not/1`)). Note [`&&`](`&&/2`), [`||`](`||/2`), and [`!`](`!/1`) sibling operators are **not allowed** as they're not *strictly* boolean - meaning they don't require arguments to be booleans
282282
* arithmetic unary operators ([`+`](`+/1`), [`-`](`-/1`))
283283
* arithmetic binary operators ([`+`](`+/2`), [`-`](`-/2`), [`*`](`*/2`), [`/`](`//2`))

0 commit comments

Comments
 (0)