From 1310507fcb0886a29fc20c819ce8ee46ea40373d Mon Sep 17 00:00:00 2001 From: TechiePi Date: Mon, 24 Oct 2022 14:51:30 +0200 Subject: [PATCH] Document ``set_title`` input and NUL bytes --- ctru-rs/src/applets/mii_selector.rs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/ctru-rs/src/applets/mii_selector.rs b/ctru-rs/src/applets/mii_selector.rs index c90e8ad..3bbcedc 100644 --- a/ctru-rs/src/applets/mii_selector.rs +++ b/ctru-rs/src/applets/mii_selector.rs @@ -76,7 +76,9 @@ impl MiiSelector { Self { config } } - /// Set the title of the Mii Selector + /// Set the title of the Mii Selector. + /// + /// This function would panic if the given ``&str`` contains NUL bytes. pub fn set_title(&mut self, text: &str) { // This can only fail if the text contains NUL bytes in the string... which seems // unlikely and is documented