From c3bf10304641fd9e3c60635adbd8b5d527e334ef Mon Sep 17 00:00:00 2001 From: Brian Caswell Date: Tue, 19 Mar 2024 18:53:51 -0400 Subject: [PATCH] update rustdoc definitions Allow the `rust` sections to be tested. For the `toml` section, specify the language as `toml` such that it doesn't get tested if a developer runs the tests as `cargo test -- --ignored` --- src/lib.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/lib.rs b/src/lib.rs index 8943907..6fc4ec3 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -6,7 +6,7 @@ //! Mimalloc is a general purpose, performance oriented allocator built by Microsoft. //! //! ## Usage -//! ```rust,ignore +//! ```rust //! use mimalloc::MiMalloc; //! //! #[global_allocator] @@ -18,7 +18,7 @@ //! heap allocations are encrypted, but this results in a 3% increase in overhead. //! //! To disable secure mode, in `Cargo.toml`: -//! ```rust,ignore +//! ```toml //! [dependencies] //! mimalloc = { version = "*", default-features = false } //! ``` @@ -32,7 +32,7 @@ use ffi::*; /// Drop-in mimalloc global allocator. /// /// ## Usage -/// ```rust,ignore +/// ```rust /// use mimalloc::MiMalloc; /// /// #[global_allocator]