mirror of
https://github.com/rust-lang/rust.git
synced 2025-02-04 11:04:03 +00:00
Added feature flag to doc test
This commit is contained in:
parent
772543aeff
commit
907eab8e62
@ -196,6 +196,7 @@ impl<'a> CharIndices<'a> {
|
||||
/// # Examples
|
||||
///
|
||||
/// ```
|
||||
/// #![feature(char_indices_offset)]
|
||||
/// let mut chars = "a楽".char_indices();
|
||||
///
|
||||
/// assert_eq!(chars.offset(), 0);
|
||||
|
Loading…
Reference in New Issue
Block a user