aboutsummaryrefslogtreecommitdiff
path: root/src/link.zig
diff options
context:
space:
mode:
Diffstat (limited to 'src/link.zig')
-rw-r--r--src/link.zig4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/link.zig b/src/link.zig
index 07cbf95..612ee8c 100644
--- a/src/link.zig
+++ b/src/link.zig
@@ -34,9 +34,9 @@ pub fn parse(alloc: Allocator, l: *Lexer) Error!Element {
if (href.kind != .literal) return Error.InvalidLink;
const finisher = l.next() orelse return Error.InvalidLink;
if (!finisher.equals(.link, ")")) return Error.InvalidLink;
- const in: Element = if (el.content.items.len > 0)
+ const in: Element = if (el.content.items.len > 0)
el.element()
- else
+ else
(try Element.Literal.init(alloc, href.content)).element();
return (try Link.init(alloc, in, href.content)).element();
}