Skip to content

Commit

Permalink
Add missing line
Browse files Browse the repository at this point in the history
  • Loading branch information
joaosreis committed Feb 12, 2025
1 parent 927db48 commit 0133ef4
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/memo.rs
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ impl Memo {
/// Converts the memo to a string (ignoring trailing zeros)
pub fn to_string(&self) -> String {
let len = self.0[LENGTH_INDEX] as usize;
String::from_utf8_lossy(&self.0[2..2 + len]).into_owned()
}
}

Expand Down

0 comments on commit 0133ef4

Please sign in to comment.