We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 4935ea9 + 2c08654 commit 023f661Copy full SHA for 023f661
src/librustc_unicode/char.rs
@@ -187,22 +187,16 @@ impl char {
187
/// # Examples
188
///
189
/// ```
190
- /// for i in '❤'.escape_unicode() {
191
- /// println!("{}", i);
+ /// for c in '❤'.escape_unicode() {
+ /// print!("{}", c);
192
/// }
193
+ /// println!("");
194
195
196
/// This prints:
197
198
/// ```text
- /// \
199
- /// u
200
- /// {
201
- /// 2
202
- /// 7
203
- /// 6
204
- /// 4
205
- /// }
+ /// \u{2764}
206
207
208
/// Collecting into a `String`:
0 commit comments