Skip to content

Commit 2c08654

Browse files
committed
doc: 'c' feels more suitable than 'i' for representing characters
1 parent 50de1d6 commit 2c08654

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/librustc_unicode/char.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -187,8 +187,8 @@ impl char {
187187
/// # Examples
188188
///
189189
/// ```
190-
/// for i in '❤'.escape_unicode() {
191-
/// print!("{}", i);
190+
/// for c in '❤'.escape_unicode() {
191+
/// print!("{}", c);
192192
/// }
193193
/// println!("");
194194
/// ```

0 commit comments

Comments
 (0)