mirror of
https://github.com/chronotope/chrono.git
synced 2025-09-28 05:21:39 +00:00
Remove unnecessary "```ignore"
This commit is contained in:
parent
18328a8d9f
commit
61d54b5de8
@ -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]
|
||||
|
@ -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::*;
|
||||
//!
|
||||
|
Loading…
x
Reference in New Issue
Block a user