summaryrefslogtreecommitdiff
path: root/exercises/098_bit_manipulation2.zig
diff options
context:
space:
mode:
authorChris Boesch <chrboesch@noreply.codeberg.org>2025-08-24 14:59:26 +0200
committerChris Boesch <chrboesch@noreply.codeberg.org>2025-08-24 14:59:26 +0200
commita46db7e0e84718d1898d26b3d798c767792c0779 (patch)
tree9233974b52c566b83c865239fd7c73954315e2b1 /exercises/098_bit_manipulation2.zig
parentf5d2c5124c2728d14d4c349c9287edb00f9eb633 (diff)
parent564ea3405d2dce481001c52b64784b5fce4bd37a (diff)
Merge branch 'main' into test-expect
Diffstat (limited to 'exercises/098_bit_manipulation2.zig')
-rw-r--r--exercises/098_bit_manipulation2.zig4
1 files changed, 2 insertions, 2 deletions
diff --git a/exercises/098_bit_manipulation2.zig b/exercises/098_bit_manipulation2.zig
index 979b103..8b51265 100644
--- a/exercises/098_bit_manipulation2.zig
+++ b/exercises/098_bit_manipulation2.zig
@@ -32,7 +32,7 @@ const print = std.debug.print;
pub fn main() !void {
// let's check the pangram
- print("Is this a pangram? {?}!\n", .{isPangram("The quick brown fox jumps over the lazy dog.")});
+ print("Is this a pangram? {}!\n", .{isPangram("The quick brown fox jumps over the lazy dog.")});
}
fn isPangram(str: []const u8) bool {
@@ -45,7 +45,7 @@ fn isPangram(str: []const u8) bool {
// loop about all characters in the string
for (str) |c| {
// if the character is an alphabetical character
- if (ascii.isASCII(c) and ascii.isAlphabetic(c)) {
+ if (ascii.isAscii(c) and ascii.isAlphabetic(c)) {
// then we set the bit at the position
//
// to do this, we use a little trick: