about summary refs log tree commit diff
diff options
context:
space:
mode:
authorTshepang Lekhonkhobe <tshepang@gmail.com>2015-06-13 00:01:16 +0200
committerTshepang Lekhonkhobe <tshepang@gmail.com>2015-06-13 00:01:16 +0200
commit2c08654e0936f6b6ecd174a6b261854effec30b9 (patch)
tree33df5e3a1ba0a0f89dedf4e728e6af0e4329173e
parent50de1d6e716d06dbb4ea8d59707bf827445e0a48 (diff)
downloadrust-2c08654e0936f6b6ecd174a6b261854effec30b9.tar.gz
rust-2c08654e0936f6b6ecd174a6b261854effec30b9.zip
doc: 'c' feels more suitable than 'i' for representing characters
-rw-r--r--src/librustc_unicode/char.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/librustc_unicode/char.rs b/src/librustc_unicode/char.rs
index afe7c8bd3b5..68f2488702c 100644
--- a/src/librustc_unicode/char.rs
+++ b/src/librustc_unicode/char.rs
@@ -187,8 +187,8 @@ impl char {
     /// # Examples
     ///
     /// ```
-    /// for i in '❤'.escape_unicode() {
-    ///     print!("{}", i);
+    /// for c in '❤'.escape_unicode() {
+    ///     print!("{}", c);
     /// }
     /// println!("");
     /// ```