mirror of
https://github.com/enso-org/enso.git
synced 2024-11-05 03:59:38 +03:00
Quickfix for panic (#10125)
This commit is contained in:
parent
322662ee9d
commit
e9452ea8ad
@ -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 =
|
||||
|
Loading…
Reference in New Issue
Block a user