Skip to content

Commit 8bc49af

Browse files
Use thin space (U+2009) as a separator instead of _ and in regular English language (#14635)
1 parent e55c61f commit 8bc49af

File tree

5 files changed

+9
-9
lines changed

5 files changed

+9
-9
lines changed

lib/elixir/lib/calendar/date.ex

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -633,7 +633,7 @@ defmodule Date do
633633
## Examples
634634
635635
Imagine someone implements `Calendar.Holocene`, a calendar based on the
636-
Gregorian calendar that adds exactly 10,000 years to the current Gregorian
636+
Gregorian calendar that adds exactly 10000 years to the current Gregorian
637637
year:
638638
639639
iex> Date.convert(~D[2000-01-01], Calendar.Holocene)
@@ -667,7 +667,7 @@ defmodule Date do
667667
## Examples
668668
669669
Imagine someone implements `Calendar.Holocene`, a calendar based on the
670-
Gregorian calendar that adds exactly 10,000 years to the current Gregorian
670+
Gregorian calendar that adds exactly 10000 years to the current Gregorian
671671
year:
672672
673673
iex> Date.convert!(~D[2000-01-01], Calendar.Holocene)

lib/elixir/lib/calendar/datetime.ex

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1922,7 +1922,7 @@ defmodule DateTime do
19221922
## Examples
19231923
19241924
Imagine someone implements `Calendar.Holocene`, a calendar based on the
1925-
Gregorian calendar that adds exactly 10,000 years to the current Gregorian
1925+
Gregorian calendar that adds exactly 10000 years to the current Gregorian
19261926
year:
19271927
19281928
iex> dt1 = %DateTime{year: 2000, month: 2, day: 29, zone_abbr: "AMT",
@@ -1969,7 +1969,7 @@ defmodule DateTime do
19691969
## Examples
19701970
19711971
Imagine someone implements `Calendar.Holocene`, a calendar based on the
1972-
Gregorian calendar that adds exactly 10,000 years to the current Gregorian
1972+
Gregorian calendar that adds exactly 10000 years to the current Gregorian
19731973
year:
19741974
19751975
iex> dt1 = %DateTime{year: 2000, month: 2, day: 29, zone_abbr: "AMT",

lib/elixir/lib/calendar/naive_datetime.ex

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1261,7 +1261,7 @@ defmodule NaiveDateTime do
12611261
## Examples
12621262
12631263
Imagine someone implements `Calendar.Holocene`, a calendar based on the
1264-
Gregorian calendar that adds exactly 10,000 years to the current Gregorian
1264+
Gregorian calendar that adds exactly 10000 years to the current Gregorian
12651265
year:
12661266
12671267
iex> NaiveDateTime.convert(~N[2000-01-01 13:30:15], Calendar.Holocene)
@@ -1327,7 +1327,7 @@ defmodule NaiveDateTime do
13271327
## Examples
13281328
13291329
Imagine someone implements `Calendar.Holocene`, a calendar based on the
1330-
Gregorian calendar that adds exactly 10,000 years to the current Gregorian
1330+
Gregorian calendar that adds exactly 10000 years to the current Gregorian
13311331
year:
13321332
13331333
iex> NaiveDateTime.convert!(~N[2000-01-01 13:30:15], Calendar.Holocene)

lib/elixir/lib/calendar/time.ex

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -781,7 +781,7 @@ defmodule Time do
781781
## Examples
782782
783783
Imagine someone implements `Calendar.Holocene`, a calendar based on the
784-
Gregorian calendar that adds exactly 10,000 years to the current Gregorian
784+
Gregorian calendar that adds exactly 10000 years to the current Gregorian
785785
year:
786786
787787
iex> Time.convert(~T[13:30:15], Calendar.Holocene)
@@ -837,7 +837,7 @@ defmodule Time do
837837
## Examples
838838
839839
Imagine someone implements `Calendar.Holocene`, a calendar based on the
840-
Gregorian calendar that adds exactly 10,000 years to the current Gregorian
840+
Gregorian calendar that adds exactly 10000 years to the current Gregorian
841841
year:
842842
843843
iex> Time.convert!(~T[13:30:15], Calendar.Holocene)

lib/elixir/pages/anti-patterns/code-anti-patterns.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -144,7 +144,7 @@ end
144144

145145
#### Problem
146146

147-
An `Atom` is an Elixir basic type whose value is its own name. Atoms are often useful to identify resources or express the state, or result, of an operation. Creating atoms dynamically is not an anti-pattern by itself. However, atoms are not garbage collected by the Erlang Virtual Machine, so values of this type live in memory during a software's entire execution lifetime. The Erlang VM limits the number of atoms that can exist in an application by default to *1_048_576*, which is more than enough to cover all atoms defined in a program, but attempts to serve as an early limit for applications which are "leaking atoms" through dynamic creation.
147+
An `Atom` is an Elixir basic type whose value is its own name. Atoms are often useful to identify resources or express the state, or result, of an operation. Creating atoms dynamically is not an anti-pattern by itself. However, atoms are not garbage collected by the Erlang Virtual Machine, so values of this type live in memory during a software's entire execution lifetime. The Erlang VM limits the number of atoms that can exist in an application by default to *1 048 576*, which is more than enough to cover all atoms defined in a program, but attempts to serve as an early limit for applications which are "leaking atoms" through dynamic creation.
148148

149149
For these reasons, creating atoms dynamically can be considered an anti-pattern when the developer has no control over how many atoms will be created during the software execution. This unpredictable scenario can expose the software to unexpected behavior caused by excessive memory usage, or even by reaching the maximum number of *atoms* possible.
150150

0 commit comments

Comments
 (0)