Added feature flag to doc test

This commit is contained in:
John Hörnvall 2021-02-27 13:33:55 +01:00
parent 772543aeff
commit 907eab8e62

View File

@ -196,6 +196,7 @@ impl<'a> CharIndices<'a> {
/// # Examples
///
/// ```
/// #![feature(char_indices_offset)]
/// let mut chars = "a楽".char_indices();
///
/// assert_eq!(chars.offset(), 0);