Skip to content

Commit f41fb6f

Browse files
authored
Apply suggestions from code review
copyediting
1 parent 94edff9 commit f41fb6f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

ports/raspberrypi/bindings/rp2pio/StateMachine.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -468,12 +468,12 @@ STATIC mp_obj_t rp2pio_statemachine_write_readinto(size_t n_args, const mp_obj_t
468468

469469
int in_stride_in_bytes = mp_binary_get_size('@', buf_in_info.typecode, NULL);
470470
if (in_stride_in_bytes > 4) {
471-
mp_raise_ValueError(translate("In buffer elements must be max 4 bytes long"));
471+
mp_raise_ValueError(translate("In-buffer elements must be <= 4 bytes long"));
472472
}
473473

474474
int out_stride_in_bytes = mp_binary_get_size('@', buf_out_info.typecode, NULL);
475475
if (out_stride_in_bytes > 4) {
476-
mp_raise_ValueError(translate("Out buffer elements must be max 4 bytes long"));
476+
mp_raise_ValueError(translate("Out-buffer elements must be <= 4 bytes long"));
477477
}
478478

479479
bool ok = common_hal_rp2pio_statemachine_write_readinto(self,

0 commit comments

Comments
 (0)