From 3156571fc1a85fcc4cfd37b89dee8f42b84f8acb Mon Sep 17 00:00:00 2001 From: zxj Date: Sat, 27 Jul 2024 21:41:40 +0800 Subject: [PATCH] edit doc --- example/src/main.rs | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/example/src/main.rs b/example/src/main.rs index 2a9e1a2..27ec59e 100644 --- a/example/src/main.rs +++ b/example/src/main.rs @@ -1,12 +1,7 @@ use fast_log::config::Config; -use fast_log::print; fn main() { fast_log::init(Config::new().console().chan_len(Some(100000))).unwrap(); - for _ in 0..100 { - log::info!("Commencing yak shaving{}", 0); - } - print("Commencing print\n".into()).expect("fast log not init"); + log::info!("Commencing yak shaving{}", 0); log::error!("Commencing yak shaving{}", 0); - log::logger().flush(); }