aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/exercises/098_bit_manipulation2.zig
diff options
context:
space:
mode:
authorChris Boesch <chrboesch@noreply.codeberg.org>2023-06-26 23:43:39 +0200
committerChris Boesch <chrboesch@noreply.codeberg.org>2023-06-26 23:43:39 +0200
commita5a36337e88a15befbb814cdd14a4801e44f6673 (patch)
tree026ae50af63d732bb862f8a5b92dbce86af405ea /exercises/098_bit_manipulation2.zig
parentc3aed336e70392e33dfebf32489f803bf6736ab9 (diff)
Revised exercises due to the changes of Zig version 0.11.0-dev.3853
Diffstat (limited to 'exercises/098_bit_manipulation2.zig')
-rw-r--r--exercises/098_bit_manipulation2.zig2
1 files changed, 1 insertions, 1 deletions
diff --git a/exercises/098_bit_manipulation2.zig b/exercises/098_bit_manipulation2.zig
index 9323548..e39486f 100644
--- a/exercises/098_bit_manipulation2.zig
+++ b/exercises/098_bit_manipulation2.zig
@@ -53,7 +53,7 @@ fn isPangram(str: []const u8) bool {
// and are numbered sequentially, we simply subtract the
// first letter (in this case the 'a') from the character
// found, and thus get the position of the desired bit
- bits |= @as(u32, 1) << @truncate(u5, ascii.toLower(c) - 'a');
+ bits |= @as(u32, 1) << @truncate(ascii.toLower(c) - 'a');
}
}
// last we return the comparison if all 26 bits are set,