]> git.lizzy.rs Git - rust.git/blobdiff - src/liblog/macros.rs
rollup merge of #20482: kmcallister/macro-reform
[rust.git] / src / liblog / macros.rs
index 5249e971439cddc2af07df55748bf657ffb5e552..5c7085b7b6c5f8909a451fcaf892ba473d66b6a7 100644 (file)
@@ -119,7 +119,7 @@ macro_rules! warn {
 /// #[macro_use] extern crate log;
 ///
 /// fn main() {
-///     let ret = 3i;
+///     let ret = 3;
 ///     info!("this function is about to return: {}", ret);
 /// }
 /// ```
@@ -145,7 +145,7 @@ macro_rules! info {
 /// #[macro_use] extern crate log;
 ///
 /// fn main() {
-///     debug!("x = {x}, y = {y}", x=10i, y=20i);
+///     debug!("x = {x}, y = {y}", x=10, y=20);
 /// }
 /// ```
 ///