aboutsummaryrefslogtreecommitdiff
path: root/build2/algorithm.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'build2/algorithm.cxx')
-rw-r--r--build2/algorithm.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/build2/algorithm.cxx b/build2/algorithm.cxx
index 2ea2d1a..7ef5267 100644
--- a/build2/algorithm.cxx
+++ b/build2/algorithm.cxx
@@ -364,7 +364,7 @@ namespace build2
string hint;
auto rs (rules.size () == 1
? make_pair (rules.begin (), rules.end ())
- : rules.find_prefix (hint));
+ : rules.find_sub (hint));
for (auto i (rs.first); i != rs.second; ++i)
{