aboutsummaryrefslogtreecommitdiffstats
path: root/guides/source/autoloading_and_reloading_constants.md
diff options
context:
space:
mode:
authorRobin Dupret <robin.dupret@gmail.com>2014-12-24 19:35:05 +0100
committerRobin Dupret <robin.dupret@gmail.com>2014-12-24 19:56:00 +0100
commitef7e440c975ad4942e8c716c98981a2a595a7776 (patch)
treea02ad88e763dbc2a769d1b33c36064d1d6bed296 /guides/source/autoloading_and_reloading_constants.md
parent5bf56b77c3f8a892bb65fd7c4ce86c7bb11830d9 (diff)
downloadrails-ef7e440c975ad4942e8c716c98981a2a595a7776.tar.gz
rails-ef7e440c975ad4942e8c716c98981a2a595a7776.tar.bz2
rails-ef7e440c975ad4942e8c716c98981a2a595a7776.zip
Fix a few typos [ci skip]
Diffstat (limited to 'guides/source/autoloading_and_reloading_constants.md')
-rw-r--r--guides/source/autoloading_and_reloading_constants.md9
1 files changed, 5 insertions, 4 deletions
diff --git a/guides/source/autoloading_and_reloading_constants.md b/guides/source/autoloading_and_reloading_constants.md
index d14b8d9011..489ea681e2 100644
--- a/guides/source/autoloading_and_reloading_constants.md
+++ b/guides/source/autoloading_and_reloading_constants.md
@@ -258,7 +258,7 @@ module Colors
end
```
-First, when the `module` keyword is processed the interpreter creates a new
+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 name "Colors" to a newly created module object.
Furthermore, the interpreter sets the name of the new module object to be the
@@ -1173,7 +1173,8 @@ class Hotel
end
```
-the expression `Hotel::Image` is ambiguous, depends on the execution path.
+the expression `Hotel::Image` is ambiguous because it depends on the execution
+path.
As [we saw before](#resolution-algorithm-for-qualified-constants), Ruby looks
up the constant in `Hotel` and its ancestors. If `app/models/image.rb` has
@@ -1282,8 +1283,8 @@ c.user # surprisingly fine, User
c.user # NameError: uninitialized constant C::User
```
-because it detects a parent namespace already has the constant (see [Qualified
-References](#qualified-references).)
+because it detects that a parent namespace already has the constant (see [Qualified
+References](#autoloading-algorithms-qualified-references).)
As with pure Ruby, within the body of a direct descendant of `BasicObject` use
always absolute constant paths: