More improvements to operator docs (#10220)

This commit is contained in:
Eksperimental
2020-07-22 14:44:12 +02:00
committed by GitHub
parent 7b27ffa7de
commit 660fc86ede
2 changed files with 4 additions and 4 deletions
+2 -2
View File
@@ -133,7 +133,7 @@ defmodule Kernel do
* [Library Guidelines](library-guidelines.md) - general guidelines, anti-patterns,
and rules for those writing libraries
* [Naming Conventions](naming-conventions.md) - naming conventions for Elixir code
* [Operators](operators.md) - lists all Elixir operators and their precedence
* [Operators](operators.md) - lists all Elixir operators and their precedences
* [Patterns and Guards](patterns-and-guards.md) - an introduction to patterns,
guards, and extensions
* [Syntax Reference](syntax-reference.md) - the language syntax reference
@@ -3398,7 +3398,7 @@ defmodule Kernel do
end
@doc """
Returns a range with the specified `first` and `last` integers.
Range creation operator. Returns a range with the specified `first` and `last` integers.
If last is larger than first, the range will be increasing from
first to last. If first is larger than last, the range will be
+2 -2
View File
@@ -40,7 +40,7 @@ Elixir provides the following built-in operators that are defined as functions t
* [`or`](`or/2`) and [`||`](`||/2`) - strict and relaxed boolean "or"
* [`not`](`not/1`) and [`!`](`!/1`) - strict and relaxed boolean "not"
* [`in`](`in/2`) and [`not in`](`in/2`) - membership
* [`@`](`@/1`) - module attribute definition and access
* [`@`](`@/1`) - module attribute
* [`..`](`../2`) - range creation
* [`<>`](`<>/2`) - binary concatenation
* [`|>`](`|>/2`) - pipeline
@@ -55,7 +55,7 @@ Some other operators are special forms and cannot be overridden:
* [`^`](`^/1`) - pin operator
* [`.`](`./2`) - dot operator
* [`=`](`=/2`) - match operatpr
* [`=`](`=/2`) - match operator
* [`&`](`&/1`) - capture operator
* [`::`](`Kernel.SpecialForms.::/2`) - type operator