Skip to content

Commit

Permalink
refactor: shadow a variable
Browse files Browse the repository at this point in the history
  • Loading branch information
AgentElement committed Jul 22, 2024
1 parent 29e9229 commit fbca7e0
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/term.rs
Original file line number Diff line number Diff line change
Expand Up @@ -526,11 +526,11 @@ fn show_precedence_cla(
match term {
Var(0) => "undefined".to_owned(),
Var(i) => {
let cast = *i as u32;
let ix = if cast <= depth {
depth - cast
let i = *i as u32;
let ix = if i <= depth {
depth - i
} else {
max_depth + cast - depth - 1
max_depth + i - depth - 1
};
base26_encode(ix)
}
Expand Down

0 comments on commit fbca7e0

Please sign in to comment.