From 7c1887b8b0bff4478531f2abded1c3d31bf783a2 Mon Sep 17 00:00:00 2001 From: Nulo Date: Mon, 18 Jul 2022 16:23:04 -0300 Subject: [PATCH] =?UTF-8?q?parser:=20Arreglar=20t=C3=ADtulos?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- parser.zig | 2 +- readme.md | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/parser.zig b/parser.zig index f4ea780..42a4ac7 100644 --- a/parser.zig +++ b/parser.zig @@ -155,7 +155,7 @@ fn checkIfBlockStarts(allocator: std.mem.Allocator, line: *[]const u8) !?Block { } else if (std.mem.startsWith(u8, line.*, "#")) { const level = getHeadingLevel(line.*); if (line.*[level..].len != 0) { - if (line.*[level] != ' ' or line.*[level] != '\t') return null; + if (line.*[level] != ' ' and line.*[level] != '\t') return null; line.* = line.*[level + 1 ..]; } return Block{ .heading = .{ diff --git a/readme.md b/readme.md index cf97108..9368c91 100644 --- a/readme.md +++ b/readme.md @@ -19,7 +19,7 @@ Ver [cli.zig](cli.zig) ## CommonMark -Actualmente: `114 passed, 538 failed, 0 errored, 0 skipped` +Actualmente: `122 passed, 530 failed, 0 errored, 0 skipped` Para correr los tests: