Skip to content

Commit c020b2d

Browse files
committed
Fix panic due to manually created span
1 parent 677f520 commit c020b2d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

crates/rust-project-goals-cli/src/updates.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -232,7 +232,7 @@ fn help_wanted(
232232
fn why_this_goal(issue_id: &IssueId, issue: &ExistingGithubIssue) -> anyhow::Result<String> {
233233
let span = Span {
234234
file: issue_id.url().into(),
235-
bytes: 0..0,
235+
bytes: 0..issue.body.len(),
236236
};
237237
let sections = markwaydown::parse_text(Spanned::new(&issue.body, span))?;
238238
for section in sections {

0 commit comments

Comments
 (0)