Skip to content

Commit

Permalink
fix returned value comment
Browse files Browse the repository at this point in the history
  • Loading branch information
xunilrj committed Aug 17, 2023
1 parent 0bc7381 commit 1b5f897
Showing 1 changed file with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,11 @@ fn bitwise_operators() -> u256 {
let c = 0x0000000000000000000000000000000000000000000000000000000000000002u256;
let d = 0x0000000000000000000000000000000000000000000000000000000000000004u256;
let e = 0x000000000000000000000000000000000000000000000000000000000000000Fu256;
!(a - b) & c | d ^ e
let r = !(a - b) & c | d ^ e;

assert(r == 0x000000000000000000000000000000000000000000000000000000000000000Bu256);

r
}

// returns 8
Expand Down

0 comments on commit 1b5f897

Please sign in to comment.