add dumb comments

This commit is contained in:
Mark Thom
2017-02-03 00:49:16 -07:00
parent 648b7d09fe
commit 0c17344afe

View File

@@ -182,6 +182,8 @@ impl Machine {
match instr {
&QueryInstruction::Call(ref name, arity) => {
// why is Option<&T> not Deref?!?!?
// is it because if the value is None, there's nothing to
// dereference?
let compiled_fact_index =
self.code_dir.get(&(name.clone(), arity))
.map(|index| *index);