From 03b417dc9efa7f73554aee45b12926db0cbafe5e Mon Sep 17 00:00:00 2001 From: Fenrir Date: Fri, 16 Feb 2024 19:20:14 -0700 Subject: [PATCH] code_point -> code_unit --- ctru-rs/src/applets/swkbd.rs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/ctru-rs/src/applets/swkbd.rs b/ctru-rs/src/applets/swkbd.rs index 935f15a..c888743 100644 --- a/ctru-rs/src/applets/swkbd.rs +++ b/ctru-rs/src/applets/swkbd.rs @@ -737,8 +737,8 @@ impl SoftwareKeyboard { let mut initial_text_cursor = swkbd_shared_mem_ptr.cast(); - for code_point in utf16_iter { - *initial_text_cursor = code_point; + for code_unit in utf16_iter { + *initial_text_cursor = code_unit; initial_text_cursor = initial_text_cursor.add(1); } } @@ -907,12 +907,12 @@ impl SoftwareKeyboard { let callback_msg = &mut swkbd.callback_msg; - for (idx, code_point) in retmsg + for (idx, code_unit) in retmsg .encode_utf16() .take(callback_msg.len() - 1) .enumerate() { - callback_msg[idx] = code_point; + callback_msg[idx] = code_unit; } let _ = unsafe {