Skip to content

Commit 4c80f81

Browse files
committed
Fix example in bitwise-xor
1 parent 125444c commit 4c80f81

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

www/midterms/1.scrbl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -159,7 +159,7 @@ at its arguments, at the bitlevel. For example:
159159
(bitwise-xor #t) ; contract violation
160160

161161
; xor with two arguments is their bitwise xor
162-
(bitwise-xor 1 2) = 0 ; Indeed: 1 = #b01, 2 = #b10
162+
(bitwise-xor 1 2) = 3 ; Indeed: 1 = #b01, 2 = #b10
163163
(bitwise-xor 1 3) = 2 ; Indeed: 1 = #b01, 3 = #b11, 2 = #b10
164164

165165
; xor with multiple arguments just performs the xor in sequence:

0 commit comments

Comments
 (0)