Skip to content

Commit

Permalink
Clarify descriptions
Browse files Browse the repository at this point in the history
  • Loading branch information
byeongkeunahn committed Jun 15, 2024
1 parent 8f39f61 commit adc23c9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions basm-std/src/platform/io/writer.rs
Original file line number Diff line number Diff line change
Expand Up @@ -409,7 +409,7 @@ impl<const N: usize> Writer<N> {
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
/// ```
Expand Down Expand Up @@ -487,7 +487,7 @@ impl<const N: usize> Print<String> for Writer<N> {
}
}

/// 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<const N: usize> Print<&String> for Writer<N> {
fn print(&mut self, x: &String) {
self.print(x.as_str());
Expand Down

0 comments on commit adc23c9

Please sign in to comment.