Skip to content

Commit

Permalink
Quickfix for panic (#10125)
Browse files Browse the repository at this point in the history
  • Loading branch information
farmaazon authored May 29, 2024
1 parent 322662e commit e9452ea
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion build/build/src/changelog.rs
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ impl<'a> Changelog<'a> {
pub fn top_release_notes(&self) -> Result<Entry> {
let mut headers = self.iterate_headers();
let first_header = headers.next().context("Failed to find a level one header.")?;
let file_end_pos = self.0.len() + 1;
let file_end_pos = self.0.len();
let next_header_start = headers.next().map_or(file_end_pos, |h| h.pos.start);
let contents = self.0[first_header.pos.end..next_header_start].trim();
let entry =
Expand Down

0 comments on commit e9452ea

Please sign in to comment.