You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Simplify custom links when linking to Kernel and SpecialForms (#8528)
Now that ExDoc automatically links to functions in
Kernel and Kernel.SpecialForms, when linking to them in custom links,
we can leave out the module name.
* strictly boolean operators ([`and`](`Kernel.and/2`), [`or`](`Kernel.or/2`), [`not`](`Kernel.not/1`)). Note [`&&`](`Kernel.&&/2`), [`||`](`Kernel.||/2`), and [`!`](`Kernel.!/1`) sibling operators are **not allowed** as they're not *strictly* boolean - meaning they don't require arguments to be booleans
* 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
@@ -63,10 +63,10 @@ In the example above, we show how guards can be used in function clauses. There
63
63
end
64
64
```
65
65
66
-
* custom guards can also be defined with `Kernel.defguard/1` and `Kernel.defguardp/1`.
66
+
* custom guards can also be defined with `defguard/1` and `defguardp/1`.
67
67
A custom guard is always defined based on existing guards.
68
68
69
-
Other constructs are [`for`](`Kernel.SpecialForms.for/1`), [`with`](`Kernel.SpecialForms.with/1`), [`try/rescue/catch/else`](`Kernel.SpecialForms.try/1`), and the `Kernel.match?/2`.
69
+
Other constructs are [`for`](`for/1`), [`with`](`with/1`), [`try/rescue/catch/else`](`try/1`), and the `match?/2`.
Copy file name to clipboardExpand all lines: lib/elixir/pages/Operators.md
+10-10Lines changed: 10 additions & 10 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -33,16 +33,16 @@ Operator
33
33
34
34
Elixir provides the following built-in comparison operators:
35
35
36
-
*[`==`](`Kernel.==/2`) - equality
37
-
*[`===`](`Kernel.===/2`) - strict equality
38
-
*[`!=`](`Kernel.!=/2`) - inequality
39
-
*[`!==`](`Kernel.!==/2`) - strict inequality
40
-
*[`<`](`Kernel.</2`) - less than
41
-
*[`>`](`Kernel.>/2`) - greater than
42
-
*[`<=`](`Kernel.<=/2`) - less than or equal
43
-
*[`>=`](`Kernel.>=/2`) - greater than or equal
36
+
*[`==`](`==/2`) - equality
37
+
*[`===`](`===/2`) - strict equality
38
+
*[`!=`](`!=/2`) - inequality
39
+
*[`!==`](`!==/2`) - strict inequality
40
+
*[`<`](`</2`) - less than
41
+
*[`>`](`>/2`) - greater than
42
+
*[`<=`](`<=/2`) - less than or equal
43
+
*[`>=`](`>=/2`) - greater than or equal
44
44
45
-
The only difference between [`==`](`Kernel.==/2`) and [`===`](`Kernel.===/2`) is that [`===`](`Kernel.===/2`) is strict when it comes to comparing integers and floats:
45
+
The only difference between [`==`](`==/2`) and [`===`](`===/2`) is that [`===`](`===/2`) is strict when it comes to comparing integers and floats:
46
46
47
47
```elixir
48
48
iex>1==1.0
@@ -51,7 +51,7 @@ iex> 1 === 1.0
51
51
false
52
52
```
53
53
54
-
[`!=`](`Kernel.!=/2`) and [`!==`](`Kernel.!==/2`) act as the negation of [`==`](`Kernel.==/2`) and [`===`](`Kernel.===/2`), respectively.
54
+
[`!=`](`!=/2`) and [`!==`](`!==/2`) act as the negation of [`==`](`==/2`) and [`===`](`===/2`), respectively.
0 commit comments