Skip to content

Commit

Permalink
polish api
Browse files Browse the repository at this point in the history
Signed-off-by: tison <[email protected]>
  • Loading branch information
tisonkun committed Oct 30, 2024
1 parent 3bbfa01 commit 269f0a8
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/logger/builder.rs
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ pub fn stderr() -> Builder {
})
}

/// A builder for configuring the logger. See also [`dispatch`] for a fluent API.
/// A builder for configuring the logger. Always constructed via [`dispatch`] for a fluent API.
///
/// ## Examples
///
Expand All @@ -99,7 +99,7 @@ pub fn stderr() -> Builder {
/// use log::LevelFilter;
/// use logforth::append;
///
/// logforth::Builder::dispatch(|b| {
/// logforth::dispatch(|b| {
/// b.filter(LevelFilter::Info)
/// .append(append::Stdout::default())
/// })
Expand All @@ -117,7 +117,7 @@ pub struct Builder {

impl Builder {
/// Create a new logger builder with the first dispatch configured by `f`.
pub fn dispatch<F>(f: F) -> Self
fn dispatch<F>(f: F) -> Self
where
F: FnOnce(DispatchBuilder<false>) -> DispatchBuilder<true>,
{
Expand Down

0 comments on commit 269f0a8

Please sign in to comment.