Skip to content

Commit 3c85d9c

Browse files
authored
subscriber: fix doc link for impl Layer for Vec (#2064)
## Motivation There's a broken link and broken formatting in the [mod-level docs] for `tracing_subscriber::layer` referring to the `Layer` impl for `Vec`s of `Layer`s. Looks like it got mangled by search+replace in #2038 so it's not an issue in master. [mod-level docs]: https://docs.rs/tracing-subscriber/0.3.11/tracing_subscriber/layer/index.html#runtime-configuration-with-layers ## Solution I have stolen the correct markdown and link from master.
1 parent b9da544 commit 3c85d9c

File tree

1 file changed

+2
-1
lines changed
  • tracing-subscriber/src/layer

1 file changed

+2
-1
lines changed

tracing-subscriber/src/layer/mod.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -268,7 +268,7 @@
268268
//! more convenient, but [`Box::new`] may be used as well.
269269
//!
270270
//! When the number of `Layer`s varies at runtime, note that a
271-
//! [`Vec<L> where L: `Layer`` also implements `Layer`][vec-impl]. This
271+
//! [`Vec<L> where L: Layer` also implements `Layer`][vec-impl]. This
272272
//! can be used to add a variable number of `Layer`s to a `Subscriber`:
273273
//!
274274
//! ```
@@ -370,6 +370,7 @@
370370
//!
371371
//! [option-impl]: Layer#impl-Layer<S>-for-Option<L>
372372
//! [box-impl]: Layer#impl-Layer%3CS%3E-for-Box%3Cdyn%20Layer%3CS%3E%20+%20Send%20+%20Sync%3E
373+
//! [vec-impl]: Layer#impl-Layer<S>-for-Vec<L>
373374
//! [prelude]: crate::prelude
374375
//!
375376
//! # Recording Traces

0 commit comments

Comments
 (0)