diff --git a/lib/docs/wasm/html_render.zig b/lib/docs/wasm/html_render.zig index a406699f59..a5211fc77f 100644 --- a/lib/docs/wasm/html_render.zig +++ b/lib/docs/wasm/html_render.zig @@ -91,7 +91,7 @@ pub fn fileSourceHtml( while (true) { if (next_annotate_index >= options.source_location_annotations.len) break; const next_annotation = options.source_location_annotations[next_annotate_index]; - if (cursor < next_annotation.file_byte_offset) break; + if (cursor <= next_annotation.file_byte_offset) break; try out.writer(gpa).print("", .{ options.annotation_prefix, next_annotation.dom_id, });