Skip to content

Commit

Permalink
fix: 改正笔误
Browse files Browse the repository at this point in the history
Signed-off-by: YdrMaster <ydrml@hotmail.com>
  • Loading branch information
YdrMaster committed Aug 9, 2024
1 parent ad17461 commit 633b0fd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/functions.rs
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ pub(crate) fn collect_vocabs_with_hint<'s>(
let vocabs = zip(vocabs, is_byte)
.enumerate()
.map(|(i, (piece, is_byte))| {
if is_byte {
let piece = if is_byte {
let b = as_byte_token(piece)
.unwrap_or_else(|| panic!("{piece:?} is not a valid byte token"))
as usize;
Expand Down

0 comments on commit 633b0fd

Please sign in to comment.