diff --git a/basm-std/src/platform/io/writer.rs b/basm-std/src/platform/io/writer.rs index f56a9a2d..0cb23593 100644 --- a/basm-std/src/platform/io/writer.rs +++ b/basm-std/src/platform/io/writer.rs @@ -409,7 +409,7 @@ impl Writer { let printed = buffer.format(f); self.bytes(printed.as_bytes()); } - /// Writes a single `char` to standard output. + /// Writes a single `char` to standard output, encoded as UTF-8. /// ```no_run /// writer.char('c'); // c /// ``` @@ -487,7 +487,7 @@ impl Print for Writer { } } -/// Writes `&String` using `Writer::Print<&str>()` and [`String::as_str()`] to standard output. Note that `print()` doesn't add a newline at the end of the output. If a newline is needed, use `println()`. +/// Writes a single `&String` using `Writer::Print<&str>()` and [`String::as_str()`] to standard output. Note that `print()` doesn't add a newline at the end of the output. If a newline is needed, use `println()`. impl Print<&String> for Writer { fn print(&mut self, x: &String) { self.print(x.as_str());