diff --git a/src/config.rs b/src/config.rs index c06db0b..427c296 100644 --- a/src/config.rs +++ b/src/config.rs @@ -127,17 +127,17 @@ impl Config { /// ```rust /// use fast_log::Config; /// use fast_log::consts::LogSize; - /// use fast_log::plugin::file_split::{PackType, RawFile, RollingType}; + /// use fast_log::plugin::file_split::{HowPack, PackType, RawFile, RollingType}; /// use fast_log::plugin::packer::LogPacker; /// fn new(){ /// fast_log::init( /// Config::new() /// .chan_len(Some(100000)) - /// .split::( + /// .split::( /// "target/logs/temp.log", /// RollingType::All, /// LogPacker {}, - /// PackType::BySize(LogSize::MB(1)), + /// HowPack::new(PackType::BySize(LogSize::MB(1))), /// ), /// ); /// }