Skip to content

Commit

Permalink
but
Browse files Browse the repository at this point in the history
  • Loading branch information
2A5F committed Nov 21, 2023
1 parent c452b11 commit 22c5e1c
Show file tree
Hide file tree
Showing 2 changed files with 66 additions and 66 deletions.
4 changes: 2 additions & 2 deletions code_gen/src/code_gen.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1370,7 +1370,7 @@ fn gen_tuple_get_size(ctx: &Ctx, size: usize) -> TokenStream {
fn get(&self, index: usize) -> &Self::Output {
match index {
#(#take)*
_ => panic!("index out of bounds: the len is {} bug the index is {}", #size, index),
_ => panic!("index out of bounds: the len is {} but the index is {}", #size, index),
}
}

Expand All @@ -1388,7 +1388,7 @@ fn gen_tuple_get_size(ctx: &Ctx, size: usize) -> TokenStream {
fn get_mut(&mut self, index: usize) -> &mut Self::Output {
match index {
#(#take_mut)*
_ => panic!("index out of bounds: the len is {} bug the index is {}", #size, index),
_ => panic!("index out of bounds: the len is {} but the index is {}", #size, index),
}
}

Expand Down
Loading

0 comments on commit 22c5e1c

Please sign in to comment.