From 8d1a37ab118d62af3e1775b9d927c2fcff4bc523 Mon Sep 17 00:00:00 2001 From: Nikolay Shebanov Date: Wed, 15 Aug 2018 03:21:03 +0300 Subject: [PATCH] Fix occurrences of "parenthesis" where should be plural (#1482) Also changed iex prompt output where needed (iex 1.7.2) --- en/lessons/basics/sigils.md | 2 +- gr/lessons/basics/pipe-operator.md | 13 ++++++++----- id/lessons/basics/pipe-operator.md | 11 +++++++---- ms/lessons/basics/pipe-operator.md | 11 +++++++---- tr/lessons/basics/sigils.md | 2 +- zh-hant/lessons/basics/sigils.md | 2 +- 6 files changed, 25 insertions(+), 16 deletions(-) diff --git a/en/lessons/basics/sigils.md b/en/lessons/basics/sigils.md index 3e0eabad01..a2bec9b868 100644 --- a/en/lessons/basics/sigils.md +++ b/en/lessons/basics/sigils.md @@ -28,7 +28,7 @@ A list of delimiters include: - `<...>` A pair of pointy brackets - `{...}` A pair of curly brackets - `[...]` A pair of square brackets - - `(...)` A pair of parenthesis + - `(...)` A pair of parentheses - `|...|` A pair of pipes - `/.../` A pair of forward slashes - `"..."` A pair of double quotes diff --git a/gr/lessons/basics/pipe-operator.md b/gr/lessons/basics/pipe-operator.md index 2bd1a096e5..ac9ac04194 100644 --- a/gr/lessons/basics/pipe-operator.md +++ b/gr/lessons/basics/pipe-operator.md @@ -54,13 +54,16 @@ true ```shell iex> "Η Elixir τα σπάει" |> String.split |> Enum.map &String.upcase/1 -iex: warning: you are piping into a function call without parentheses, which may be ambiguous. Please wrap the function you are piping into in parenthesis. For example: +warning: parentheses are required when piping into a function call. For example: -foo 1 |> bar 2 |> baz 3 + foo 1 |> bar 2 |> baz 3 -Should be written as: +is ambiguous and should be written as -foo(1) |> bar(2) |> baz(3) + foo(1) |> bar(2) |> baz(3) -["Η", "ELIXIR", "ΤΑ", "ΣΠΑΕΙ"] +Ambiguous pipe found at: + iex:1 + +["Η", "ELIXIR", "ΤΑ", "ΣΠΆΕΙ"] ``` diff --git a/id/lessons/basics/pipe-operator.md b/id/lessons/basics/pipe-operator.md index 7b729d4b72..36e605370f 100644 --- a/id/lessons/basics/pipe-operator.md +++ b/id/lessons/basics/pipe-operator.md @@ -54,13 +54,16 @@ Jika arity (jumlah parameter) dari sebuah fungsi adalah lebih dari 1, pastikan u ```shell iex> "Elixir rocks" |> String.split |> Enum.map &String.upcase/1 -iex: warning: you are piping into a function call without parentheses, which may be ambiguous. Please wrap the function you are piping into in parenthesis. For example: +warning: parentheses are required when piping into a function call. For example: -foo 1 |> bar 2 |> baz 3 + foo 1 |> bar 2 |> baz 3 -Should be written as: +is ambiguous and should be written as -foo(1) |> bar(2) |> baz(3) + foo(1) |> bar(2) |> baz(3) + +Ambiguous pipe found at: + iex:1 ["ELIXIR", "ROCKS"] ``` diff --git a/ms/lessons/basics/pipe-operator.md b/ms/lessons/basics/pipe-operator.md index 6544820bcf..7dd9577bcf 100644 --- a/ms/lessons/basics/pipe-operator.md +++ b/ms/lessons/basics/pipe-operator.md @@ -54,13 +54,16 @@ Jika 'arity' satu fungsi lebih dari 1, pastikan anda menggunakan tanda kurungan' ```shell iex> "Elixir rocks" |> String.split |> Enum.map &String.upcase/1 -iex: warning: you are piping into a function call without parentheses, which may be ambiguous. Please wrap the function you are piping into in parenthesis. For example: +warning: parentheses are required when piping into a function call. For example: -foo 1 |> bar 2 |> baz 3 + foo 1 |> bar 2 |> baz 3 -Should be written as: +is ambiguous and should be written as -foo(1) |> bar(2) |> baz(3) + foo(1) |> bar(2) |> baz(3) + +Ambiguous pipe found at: + iex:1 ["ELIXIR", "ROCKS"] ``` diff --git a/tr/lessons/basics/sigils.md b/tr/lessons/basics/sigils.md index 7f587c0d6d..ee0f722ab2 100644 --- a/tr/lessons/basics/sigils.md +++ b/tr/lessons/basics/sigils.md @@ -28,7 +28,7 @@ Sınırlandırıcıların listesi: - `<...>` A pair of pointy brackets - `{...}` A pair of curly brackets - `[...]` A pair of square brackets - - `(...)` A pair of parenthesis + - `(...)` A pair of parentheses - `|...|` A pair of pipes - `/.../` A pair of forward slashes - `"..."` A pair of double quotes diff --git a/zh-hant/lessons/basics/sigils.md b/zh-hant/lessons/basics/sigils.md index bc2511532b..39c793f477 100644 --- a/zh-hant/lessons/basics/sigils.md +++ b/zh-hant/lessons/basics/sigils.md @@ -28,7 +28,7 @@ Elixir 提供了用於表示和使用文字的替代語法。 一個符咒 (sigi - `<...>` 尖括號 (pointy brackets) - `{...}` 大括號 (curly brackets) - `[...]` 中括號 (square brackets) - - `(...)` 小括號 (parenthesis) + - `(...)` 小括號 (parentheses) - `|...|` 管線符號 (pipes) - `/.../` 斜線 (forward slashes) - `"..."` 雙引號 (double quotes)