From 660fc86ede745bbb2c226d12403ae2f366164dfd Mon Sep 17 00:00:00 2001 From: Eksperimental Date: Wed, 22 Jul 2020 07:44:12 -0500 Subject: [PATCH] More improvements to operator docs (#10220) --- lib/elixir/lib/kernel.ex | 4 ++-- lib/elixir/pages/operators.md | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/lib/elixir/lib/kernel.ex b/lib/elixir/lib/kernel.ex index 88f48d6752..5f2cea0172 100644 --- a/lib/elixir/lib/kernel.ex +++ b/lib/elixir/lib/kernel.ex @@ -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 diff --git a/lib/elixir/pages/operators.md b/lib/elixir/pages/operators.md index 6dcd757d07..eb41dd6831 100644 --- a/lib/elixir/pages/operators.md +++ b/lib/elixir/pages/operators.md @@ -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