Skip to content

Commit 66f3e41

Browse files
Update bit_manipulation/check_even_odd.cpp
Co-authored-by: realstealthninja <[email protected]>
1 parent 623867e commit 66f3e41

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

bit_manipulation/check_even_odd.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ namespace even_odd {
4141
* @returns "Even" if N is even, "Odd" if N is odd.
4242
*/
4343
std::string is_even(std::int64_t N) {
44-
return (N & 1) == 0 ? "Even" : "Odd";
44+
return (N & 1) == 0;
4545
}
4646

4747
} // namespace even_odd

0 commit comments

Comments
 (0)