Skip to content

Commit 907eab8

Browse files
committed
Added feature flag to doc test
1 parent 772543a commit 907eab8

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

library/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)