Skip to content

Commit 8985d52

Browse files
committed
Added feature flag to doc test
1 parent d8aa2ba commit 8985d52

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

core/src/str/iter.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -196,6 +196,7 @@ impl<'a> CharIndices<'a> {
196196
/// # Examples
197197
///
198198
/// ```
199+
/// #![feature(char_indices_offset)]
199200
/// let mut chars = "a楽".char_indices();
200201
///
201202
/// assert_eq!(chars.offset(), 0);

0 commit comments

Comments
 (0)