about summary refs log tree commit diff
diff options
context:
space:
mode:
authorYuki Okushi <jtitor@2k36.org>2022-05-19 08:22:43 +0900
committerGitHub <noreply@github.com>2022-05-19 08:22:43 +0900
commitb7d72add468a00d6d4fd78897c64542e9a0bda33 (patch)
treea2ca3cf96ca5c9580f8c78109d876425ce8bbe0c
parent8aba26d34c010f864974fedf94cd4b7d89c4d055 (diff)
parenta47edcf72aff3fb4e8bb52cc7823fd140ce5470d (diff)
downloadrust-b7d72add468a00d6d4fd78897c64542e9a0bda33.tar.gz
rust-b7d72add468a00d6d4fd78897c64542e9a0bda33.zip
Rollup merge of #97131 - gimbles:patch-2, r=Dylan-DPC
Improve println! documentation
-rw-r--r--library/std/src/macros.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/library/std/src/macros.rs b/library/std/src/macros.rs
index e512c0d81a0..c7348951511 100644
--- a/library/std/src/macros.rs
+++ b/library/std/src/macros.rs
@@ -72,7 +72,7 @@ macro_rules! print {
 /// On all platforms, the newline is the LINE FEED character (`\n`/`U+000A`) alone
 /// (no additional CARRIAGE RETURN (`\r`/`U+000D`)).
 ///
-/// Use the [`format!`] syntax to write data to the standard output.
+/// This macro uses the same syntax as [`format!`], but writes to the standard output instead.
 /// See [`std::fmt`] for more information.
 ///
 /// Use `println!` only for the primary output of your program. Use