Skip to content

Commit

Permalink
Fix typo
Browse files Browse the repository at this point in the history
  • Loading branch information
staktrace committed Aug 26, 2024
1 parent 428dc02 commit 2d3bde1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/constant_pool.rs
Original file line number Diff line number Diff line change
Expand Up @@ -318,7 +318,7 @@ impl<'a> ConstantPoolEntry<'a> {
}
}

/// Returns &str if self if Utf8. Returns parse error otherwise.
/// Returns &str if self is Utf8. Returns parse error otherwise.
/// The parse error will have a special message if self is Utf8Bytes
/// because such an odd case might be difficult to debug otherwise.
fn str(&self) -> Result<&str, ParseError> {
Expand Down

0 comments on commit 2d3bde1

Please sign in to comment.