Skip to content

Commit

Permalink
Fix Indicator::second()
Browse files Browse the repository at this point in the history
  • Loading branch information
blackbeam authored Sep 2, 2023
1 parent 2a4ead4 commit ff02400
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/indicator.rs
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ impl Indicator {
///
/// Will panic in case of non-utf8 indicator.
pub fn second(&self) -> &str {
std::str::from_utf8(&self.0[..1]).expect("non-utf8 indicator")
std::str::from_utf8(&self.0[1..]).expect("non-utf8 indicator")
}
}

Expand Down

0 comments on commit ff02400

Please sign in to comment.