about summary refs log tree commit diff stats
path: root/054static_dispatch.cc
diff options
context:
space:
mode:
authorKartik K. Agaram <vc@akkartik.com>2017-11-03 18:01:59 -0700
committerKartik K. Agaram <vc@akkartik.com>2017-11-03 18:01:59 -0700
commit504292f6f1a283af39de305879b50f16d6180caa (patch)
treeef610f9673c7ce3b982f50fc464e60acd1fc82f4 /054static_dispatch.cc
parentf78e5cb23573294f43b15021c19c00d8d2831b5e (diff)
downloadmu-504292f6f1a283af39de305879b50f16d6180caa.tar.gz
4106
Diffstat (limited to '054static_dispatch.cc')
-rw-r--r--054static_dispatch.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/054static_dispatch.cc b/054static_dispatch.cc
index 69dc30bd..8a026d90 100644
--- a/054static_dispatch.cc
+++ b/054static_dispatch.cc
@@ -342,10 +342,10 @@ const recipe& best_variant(const instruction& inst, vector<recipe_ordinal>& cand
   int min_index = 0;
   for (int i = 0;  i < SIZE(candidates);  ++i) {
     const recipe& candidate = get(Recipe, candidates.at(i));
-    // prefer functions without extra or missing ingredients or products
+    // prefer variants without extra or missing ingredients or products
     int score = abs(SIZE(candidate.products)-SIZE(inst.products))
                           + abs(SIZE(candidate.ingredients)-SIZE(inst.ingredients));
-    // prefer functions with non-address ingredients or products
+    // prefer variants with non-address ingredients or products
     for (int j = 0;  j < SIZE(candidate.ingredients);  ++j) {
       if (is_mu_address(candidate.ingredients.at(j)))
         ++score;