dolphinsmalltalk / Dolphin

Dolphin Smalltalk Core Image
MIT License
301 stars 58 forks source link

Core.True>>xor: - misleading description (method comment) #1105

Closed FBek055 closed 3 years ago

FBek055 commented 3 years ago

Describe the bug Not really a bug but a misleading description of the Core.True>>xor: method, probably due to an incomplete editing. The code itself is correct.

To Reproduce: True >> xor: operand "Answer whether either the receiver or the boolean argument <operand> is true, but not both. Since the receiver is **_false_**, the answer is true only if the argument is false." ^operand not

Expected behavior: Replace false by true in the method description to read: "Answer whether either the receiver or the boolean argument <operand> is true, but not both. Since the receiver is **_true_**, the answer is true only if the argument is false."

Please complete the following information:

blairmcg commented 3 years ago

Fixed by 1cbd7a37cc64d44c85b6f0adbbca9791d0c97a8f