about summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--library/core/src/str/iter.rs1
1 files changed, 1 insertions, 0 deletions
diff --git a/library/core/src/str/iter.rs b/library/core/src/str/iter.rs
index 642da2d2170..b6502d192fb 100644
--- a/library/core/src/str/iter.rs
+++ b/library/core/src/str/iter.rs
@@ -196,6 +196,7 @@ impl<'a> CharIndices<'a> {
     /// # Examples
     ///
     /// ```
+    /// #![feature(char_indices_offset)]
     /// let mut chars = "a楽".char_indices();
     ///
     /// assert_eq!(chars.offset(), 0);