aboutsummaryrefslogtreecommitdiffstats
path: root/guides/source
diff options
context:
space:
mode:
authorXavier Noria <fxn@hashref.com>2014-12-15 09:40:41 +0100
committerXavier Noria <fxn@hashref.com>2014-12-15 09:40:46 +0100
commitfdbeda449e3f20fa5e341f452adc99c70d319aec (patch)
treede564a891aac5b42ebb0e73825fc849fd27a1f15 /guides/source
parent0f54387d3c7bbc48fd69f2fe09cf3907098607ed (diff)
downloadrails-fdbeda449e3f20fa5e341f452adc99c70d319aec.tar.gz
rails-fdbeda449e3f20fa5e341f452adc99c70d319aec.tar.bz2
rails-fdbeda449e3f20fa5e341f452adc99c70d319aec.zip
autoloading guide: relax type of constant names [ci skip]
Diffstat (limited to 'guides/source')
-rw-r--r--guides/source/constant_autoloading_and_reloading.md8
1 files changed, 4 insertions, 4 deletions
diff --git a/guides/source/constant_autoloading_and_reloading.md b/guides/source/constant_autoloading_and_reloading.md
index 4bfd6df0bd..40fde8a6ac 100644
--- a/guides/source/constant_autoloading_and_reloading.md
+++ b/guides/source/constant_autoloading_and_reloading.md
@@ -238,21 +238,21 @@ end
First, when the `module` keyword is processed the interpreter creates a new
entry in the constant table of the class object stored in the `Object` constant.
-Said entry associates the string "Colors" to a newly created module object.
+Said entry associates the name "Colors" to a newly created module object.
Furthermore, the interpreter sets the name of the new module object to be the
string "Colors".
Later, when the body of the module definition is interpreted, a new entry is
created in the constant table of the module object stored in the `Colors`
-constant. That entry maps the string "RED" to the string "0xff0000".
+constant. That entry maps the name "RED" to the string "0xff0000".
In particular, `Colors::RED` is totally unrelated to any other `RED` constant
that may live in any other class or module object. If there were any, they
would have separate entries in their respective constant tables.
Put special attention in the previous paragraphs to the distinction between
-class and module objects, constant names as strings, and value objects
-assiociated to them in constant tables.
+class and module objects, constant names, and value objects assiociated to them
+in constant tables.
autoload_paths