Skip to content

Commit

Permalink
[Truffle] Fix iterator class for the included modules iterators.
Browse files Browse the repository at this point in the history
  • Loading branch information
eregon committed Dec 5, 2014
1 parent 5a441e6 commit 0c900ad
Showing 1 changed file with 2 additions and 2 deletions.
Expand Up @@ -526,7 +526,7 @@ public Iterable<RubyModule> selfAndIncludedModules() {
return new Iterable<RubyModule>() {
@Override
public Iterator<RubyModule> iterator() {
return new AncestorIterator(top);
return new IncludedModulesIterator(top);
}
};
}
Expand All @@ -536,7 +536,7 @@ public Iterable<RubyModule> includedModules() {
return new Iterable<RubyModule>() {
@Override
public Iterator<RubyModule> iterator() {
return new AncestorIterator(top);
return new IncludedModulesIterator(top);
}
};
}
Expand Down

0 comments on commit 0c900ad

Please sign in to comment.