@@ -135,15 +135,15 @@ pub struct StdStreamSink {
135135impl StdStreamSink {
136136 /// Gets a builder of `StdStreamSink` with default parameters:
137137 ///
138- /// | Parameter | Default Value |
139- /// |-------------------|------------------------------------------------------|
140- /// | [level_filter] | [`LevelFilter::All`] |
141- /// | [formatter] | [`FullFormatter`] |
142- /// | [error_handler] | [`ErrorHandler::default()`] |
143- /// | | |
144- /// | [std_stream] | *must be specified* |
145- /// | [style_mode] | [`StyleMode::Auto`] |
146- /// | [via_print_macro] | `false`, or `true` if feature gate `test ` is enabled |
138+ /// | Parameter | Default Value |
139+ /// |-------------------|--------------------------------------------------------------------- |
140+ /// | [level_filter] | [`LevelFilter::All`] |
141+ /// | [formatter] | [`FullFormatter`] |
142+ /// | [error_handler] | [`ErrorHandler::default()`] |
143+ /// | | |
144+ /// | [std_stream] | *must be specified* |
145+ /// | [style_mode] | [`StyleMode::Auto`] |
146+ /// | [via_print_macro] | `false`, or `true` if feature gate `std-stream-captured ` is enabled |
147147 ///
148148 /// [level_filter]: StdStreamSinkBuilder::level_filter
149149 /// [formatter]: StdStreamSinkBuilder::formatter
@@ -158,7 +158,7 @@ impl StdStreamSink {
158158 prop : SinkProp :: default ( ) ,
159159 std_stream : ( ) ,
160160 style_mode : StyleMode :: Auto ,
161- via_print_macro : cfg ! ( feature = "test " ) ,
161+ via_print_macro : cfg ! ( feature = "std-stream-captured " ) ,
162162 }
163163 }
164164
@@ -334,7 +334,7 @@ impl<ArgSS> StdStreamSinkBuilder<ArgSS> {
334334 /// test` and `cargo bench`.
335335 ///
336336 /// This parameter is **optional**, and defaults to `false`, or defaults to
337- /// `true` if feature gate `test ` is enabled.
337+ /// `true` if feature gate `std-stream-captured ` is enabled.
338338 ///
339339 /// A convienient way to enable it for `cargo test` and `cargo bench` is to
340340 /// add the following lines to your `Cargo.toml`:
@@ -343,7 +343,7 @@ impl<ArgSS> StdStreamSinkBuilder<ArgSS> {
343343 /// # Note that it's not [dependencies]
344344 ///
345345 /// [dev-dependencies]
346- /// spdlog-rs = { version = "...", features = ["test "] }
346+ /// spdlog-rs = { version = "...", features = ["std-stream-captured "] }
347347 /// ```
348348 ///
349349 /// [captured]: https://doc.rust-lang.org/book/ch11-02-running-tests.html#showing-function-output
0 commit comments