Remove unnecessary "```ignore"

This commit is contained in:
Paul Dicker 2024-03-21 19:04:50 +01:00 committed by Paul Dicker
parent 18328a8d9f
commit 61d54b5de8
2 changed files with 3 additions and 4 deletions

View File

@ -208,8 +208,7 @@ impl<'a> StrftimeItems<'a> {
///
/// # Example
///
#[cfg_attr(not(any(feature = "alloc", feature = "std")), doc = "```ignore")]
#[cfg_attr(any(feature = "alloc", feature = "std"), doc = "```rust")]
/// ```
/// use chrono::format::*;
///
/// let strftime_parser = StrftimeItems::new("%F"); // %F: year-month-day (ISO 8601)
@ -279,6 +278,7 @@ impl<'a> StrftimeItems<'a> {
/// assert_eq!(fmtr.to_string(), "2023년 07월 11일");
/// let fmtr = dt.format_with_items(StrftimeItems::new_with_locale("%x", Locale::ja_JP));
/// assert_eq!(fmtr.to_string(), "2023年07月11日");
/// # }
/// ```
#[cfg(feature = "unstable-locales")]
#[must_use]

View File

@ -128,8 +128,7 @@
//! This is a bit verbose due to Rust's lack of function and method overloading,
//! but in turn we get a rich combination of initialization methods.
//!
#![cfg_attr(not(feature = "now"), doc = "```ignore")]
#![cfg_attr(feature = "now", doc = "```rust")]
//! ```
//! use chrono::offset::MappedLocalTime;
//! use chrono::prelude::*;
//!