slog-rs / async

Asynchronous drain for slog-rs v2
Apache License 2.0
28 stars 24 forks source link

Fix top-level doctest #22

Closed goose121 closed 2 years ago

goose121 commented 3 years ago

The way the std::process::exit call in the top level doctest is currently commented out is somewhat confusing to readers (or at least does not flow well); this commit instead wraps it in a hidden if false { ... }, which will prevent it from running without affecting what the documentation looks like.

Techcable commented 2 years ago

@dpc please merge 😉

dpc commented 2 years ago

@Techcable Try now?