Skip to content

Commit 67c343d

Browse files
authored
docs: fix nesting of next sections under examples (#7159)
Promote the feature flags and supported platforms sections out from under examples, as they are not examples. Adjust their subsections accordingly. Expose these subsections via navigation sidebar.
1 parent 34cdcc7 commit 67c343d

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

tokio/src/lib.rs

+5-5
Original file line numberDiff line numberDiff line change
@@ -302,7 +302,7 @@
302302
//! }
303303
//! ```
304304
//!
305-
//! ## Feature flags
305+
//! # Feature flags
306306
//!
307307
//! Tokio uses a set of [feature flags] to reduce the amount of compiled code. It
308308
//! is possible to just enable certain features over others. By default, Tokio
@@ -340,7 +340,7 @@
340340
//! _Note: `AsyncRead` and `AsyncWrite` traits do not require any features and are
341341
//! always available._
342342
//!
343-
//! ### Unstable features
343+
//! ## Unstable features
344344
//!
345345
//! Some feature flags are only available when specifying the `tokio_unstable` flag:
346346
//!
@@ -392,7 +392,7 @@
392392
//! [unstable features]: https://internals.rust-lang.org/t/feature-request-unstable-opt-in-non-transitive-crate-features/16193#why-not-a-crate-feature-2
393393
//! [feature flags]: https://doc.rust-lang.org/cargo/reference/manifest.html#the-features-section
394394
//!
395-
//! ## Supported platforms
395+
//! # Supported platforms
396396
//!
397397
//! Tokio currently guarantees support for the following platforms:
398398
//!
@@ -418,7 +418,7 @@
418418
//!
419419
//! [mio-supported]: https://crates.io/crates/mio#platforms
420420
//!
421-
//! ### `WASM` support
421+
//! ## `WASM` support
422422
//!
423423
//! Tokio has some limited support for the `WASM` platform. Without the
424424
//! `tokio_unstable` flag, the following features are supported:
@@ -440,7 +440,7 @@
440440
//! immediately instead of blocking forever. On platforms that don't support
441441
//! time, this means that the runtime can never be idle in any way.
442442
//!
443-
//! ### Unstable `WASM` support
443+
//! ## Unstable `WASM` support
444444
//!
445445
//! Tokio also has unstable support for some additional `WASM` features. This
446446
//! requires the use of the `tokio_unstable` flag.

0 commit comments

Comments
 (0)