We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5b4db03 commit 9cd776aCopy full SHA for 9cd776a
lib/std/fmt.zig
@@ -258,8 +258,8 @@ pub const Placeholder = struct {
258
const alignment: ?Alignment = comptime if (parser.peek(0)) |ch| init: {
259
switch (ch) {
260
'<', '^', '>' => {
261
- _ = parser.char(); // consume the character
262
- break :init switch (ch) {
+ // consume the character
+ break :init switch (parser.char().?) {
263
'<' => .left,
264
'^' => .center,
265
else => .right,
0 commit comments