Skip to content

Commit b38491c

Browse files
eksperimentaljosevalim
authored andcommitted
Use garbage-collected as a single word (#7857)
[ci skip]
1 parent d5e2446 commit b38491c

File tree

4 files changed

+6
-6
lines changed

4 files changed

+6
-6
lines changed

lib/elixir/lib/gen_server.ex

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -172,8 +172,8 @@ defmodule GenServer do
172172
registry
173173
174174
If there is an interest to register dynamic names locally, do not use
175-
atoms, as atoms are never garbage collected and therefore dynamically
176-
generated atoms won't be garbage collected. For such cases, you can
175+
atoms, as atoms are never garbage-collected and therefore dynamically
176+
generated atoms won't be garbage-collected. For such cases, you can
177177
set up your own local registry by using the `Registry` module.
178178
179179
## Receiving "regular" messages

lib/elixir/lib/option_parser.ex

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,7 @@ defmodule OptionParser do
130130
accepts only known switches and always verify their types.
131131
132132
If you do want to parse unknown switches, remember that Elixir converts switches
133-
to atoms. Since atoms are not garbage collected, OptionParser will only parse
133+
to atoms. Since atoms are not garbage-collected, OptionParser will only parse
134134
switches that translate to atoms used by the runtime to avoid leaking atoms.
135135
For instance, the code below will discard the `--option-parser-example` switch
136136
because the `:option_parser_example` atom is never used anywhere:

lib/elixir/lib/stream.ex

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -976,7 +976,7 @@ defmodule Stream do
976976
Keep in mind that, in order to know if an element is unique
977977
or not, this function needs to store all unique values emitted
978978
by the stream. Therefore, if the stream is infinite, the number
979-
of items stored will grow infinitely, never being garbage collected.
979+
of items stored will grow infinitely, never being garbage-collected.
980980
981981
## Examples
982982
@@ -1006,7 +1006,7 @@ defmodule Stream do
10061006
Keep in mind that, in order to know if an element is unique
10071007
or not, this function needs to store all unique values emitted
10081008
by the stream. Therefore, if the stream is infinite, the number
1009-
of items stored will grow infinitely, never being garbage collected.
1009+
of items stored will grow infinitely, never being garbage-collected.
10101010
10111011
## Example
10121012

lib/elixir/lib/string.ex

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2123,7 +2123,7 @@ defmodule String do
21232123
Converts a string to an atom.
21242124
21252125
Warning: this function creates atoms dynamically and atoms are
2126-
not garbage collected. Therefore, `string` should not be an
2126+
not garbage-collected. Therefore, `string` should not be an
21272127
untrusted value, such as input received from a socket or during
21282128
a web request. Consider using `to_existing_atom/1` instead.
21292129

0 commit comments

Comments
 (0)