Skip to content

Commit

Permalink
Fix typos
Browse files Browse the repository at this point in the history
  • Loading branch information
xeptore committed Mar 20, 2022
1 parent 057e1a9 commit 8914cd0
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
//!
//! Optional features include timestamps, colored output and logging to stderr.
//!
//! ```
//! ```rust
//! simple_logger::SimpleLogger::new().env().init().unwrap();
//!
//! log::warn!("This is an example message.");
Expand All @@ -12,19 +12,19 @@
//!
//! Just initialize logging without any configuration:
//!
//! ```
//! ```rust
//! simple_logger::init().unwrap();
//! ```
//!
//! Set the log level from the `RUST_LOG` environment variable:
//!
//! ```
//! ```rust
//! simple_logger::init_with_env().unwrap();
//! ```
//!
//! Hardcode a default log level:
//!
//! ```
//! ```rust
//! simple_logger::init_with_level(log::Level::Warn).unwrap();
//! ```

Expand Down Expand Up @@ -488,15 +488,15 @@ fn set_up_color_terminal() {
}
}

/// Initialise the logger with it's default configuration.
/// Initialise the logger with its default configuration.
///
/// Log messages will not be filtered.
/// The `RUST_LOG` environment variable is not used.
pub fn init() -> Result<(), SetLoggerError> {
SimpleLogger::new().init()
}

/// Initialise the logger with it's default configuration.
/// Initialise the logger with its default configuration.
///
/// Log messages will not be filtered.
/// The `RUST_LOG` environment variable is not used.
Expand Down

0 comments on commit 8914cd0

Please sign in to comment.