Skip to content

Commit

Permalink
chore: replace logical operators with bitwise in DebugToString (#5236)
Browse files Browse the repository at this point in the history
# Description

## Problem\*

Resolves <!-- Link to GitHub Issue -->

## Summary\*

We're printing `&&` and `||` in place of `&` and `|` in this code so
I've updated this to match the proper operator.

## Additional Context



## Documentation\*

Check one:
- [x] No documentation needed.
- [ ] Documentation included in this PR.
- [ ] **[For Experimental Features]** Documentation to be submitted in a
separate PR.

# PR Checklist\*

- [x] I have tested the changes locally.
- [x] I have formatted the changes with [Prettier](https://prettier.io/)
and/or `cargo fmt` on default settings.
  • Loading branch information
TomAFrench authored Jun 18, 2024
1 parent d08b7b9 commit 6599f56
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions compiler/noirc_evaluator/src/brillig/brillig_ir/debug_show.rs
Original file line number Diff line number Diff line change
Expand Up @@ -59,8 +59,8 @@ impl DebugToString for BrilligBinaryOp {
BrilligBinaryOp::UnsignedDiv => "/".into(),
BrilligBinaryOp::LessThan => "<".into(),
BrilligBinaryOp::LessThanEquals => "<=".into(),
BrilligBinaryOp::And => "&&".into(),
BrilligBinaryOp::Or => "||".into(),
BrilligBinaryOp::And => "&".into(),
BrilligBinaryOp::Or => "|".into(),
BrilligBinaryOp::Xor => "^".into(),
BrilligBinaryOp::Shl => "<<".into(),
BrilligBinaryOp::Shr => ">>".into(),
Expand Down

0 comments on commit 6599f56

Please sign in to comment.