use `values` in this error message ...

matching the documentation of struct.pack, which has `def pack(fmt: str,
*values: Any)` as the signature.
This commit is contained in:
Jeff Epler 2023-03-22 16:09:56 -05:00
parent 98c546bf57
commit 127a7092bf
No known key found for this signature in database
GPG Key ID: D5BF15AB975AB4DE
1 changed files with 1 additions and 1 deletions

View File

@ -167,7 +167,7 @@ void shared_modules_struct_pack_into(mp_obj_t fmt_in, byte *p, byte *end_p, size
}
fmt++;
}
(void)mp_arg_validate_length(n_args, i, MP_QSTR_args);
(void)mp_arg_validate_length(n_args, i, MP_QSTR_values);
}
mp_obj_tuple_t *shared_modules_struct_unpack_from(mp_obj_t fmt_in, byte *p, byte *end_p, bool exact_size) {