path: root/load.c
diff options
authornormal <normal@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2015-08-12 23:43:41 (GMT)
committernormal <normal@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2015-08-12 23:43:41 (GMT)
commit243ab2a23ee6748a7a60947f244e86bb6133597a (patch)
treee9f41f43f400287595d8a5ebec3d0e7b437b32e1 /load.c
parentbf783276f69a53fd1e2124cf7d62ae15079b7a84 (diff)
load.c: match comment with variable (`e' => `ext') [ci skip]
git-svn-id: svn+ssh:// b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'load.c')
1 files changed, 2 insertions, 2 deletions
diff --git a/load.c b/load.c
index a67fb38..47c3bfe 100644
--- a/load.c
+++ b/load.c
@@ -215,8 +215,8 @@ features_index_add_single(VALUE short_feature, VALUE offset)
/* Add to the loaded-features index all the required entries for
`feature`, located at `offset` in $LOADED_FEATURES. We add an
index entry at each string `short_feature` for which
- feature == "#{prefix}#{short_feature}#{e}"
- where `e` is empty or matches %r{^\.[^./]*$}, and `prefix` is empty
+ feature == "#{prefix}#{short_feature}#{ext}"
+ where `ext` is empty or matches %r{^\.[^./]*$}, and `prefix` is empty
or ends in '/'. This maintains the invariant that `rb_feature_p()`
relies on for its fast lookup.