From 979162522eef0bab3b3bd2d840b3c796bd579986 Mon Sep 17 00:00:00 2001 From: Dan Gohman Date: Thu, 21 Jun 2018 16:24:33 -0700 Subject: [PATCH] Keep a comment in sync with the code. --- lib/codegen/src/binemit/relaxation.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/codegen/src/binemit/relaxation.rs b/lib/codegen/src/binemit/relaxation.rs index dfebc5cb9d..a0d1ad3591 100644 --- a/lib/codegen/src/binemit/relaxation.rs +++ b/lib/codegen/src/binemit/relaxation.rs @@ -128,9 +128,9 @@ fn fallthroughs(func: &mut Function) { } } -/// Relax the branch instruction at `pos` so it can cover the range `offset - dest_offset`. +/// Relax the branch instruction at `cur` so it can cover the range `offset - dest_offset`. /// -/// Return the size of the replacement instructions up to and including the location where `pos` is +/// Return the size of the replacement instructions up to and including the location where `cur` is /// left. fn relax_branch( cur: &mut FuncCursor,