about summary refs log tree commit diff
path: root/src/libstd/sys/common
diff options
context:
space:
mode:
authorKamal Marhubi <kamal@marhubi.com>2016-03-28 13:55:47 -0400
committerKamal Marhubi <kamal@marhubi.com>2016-03-28 13:59:38 -0400
commit93569acdbe09a63a670a5a5ad6bd0a2e2d8a90b9 (patch)
tree45708e55bd2773669c964b2d226a37fb25d06acf /src/libstd/sys/common
parent3602f34e9cfe542210b6ac4302ae8d0f0799965b (diff)
downloadrust-93569acdbe09a63a670a5a5ad6bd0a2e2d8a90b9.tar.gz
rust-93569acdbe09a63a670a5a5ad6bd0a2e2d8a90b9.zip
style: Use `iter` for IntoIterator parameter names
This commit standardizes the codebase on `iter` for parameters with
IntoIterator bounds.

Previously about 40% of IntoIterator parameters were named `iterable`,
with most of the rest being named `iter`. There was a single place where
it was named `iterator`.
Diffstat (limited to 'src/libstd/sys/common')
-rw-r--r--src/libstd/sys/common/wtf8.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/libstd/sys/common/wtf8.rs b/src/libstd/sys/common/wtf8.rs
index 8b79016c251..f64f835e198 100644
--- a/src/libstd/sys/common/wtf8.rs
+++ b/src/libstd/sys/common/wtf8.rs
@@ -356,8 +356,8 @@ impl FromIterator<CodePoint> for Wtf8Buf {
 /// This replaces surrogate code point pairs with supplementary code points,
 /// like concatenating ill-formed UTF-16 strings effectively would.
 impl Extend<CodePoint> for Wtf8Buf {
-    fn extend<T: IntoIterator<Item=CodePoint>>(&mut self, iterable: T) {
-        let iterator = iterable.into_iter();
+    fn extend<T: IntoIterator<Item=CodePoint>>(&mut self, iter: T) {
+        let iterator = iter.into_iter();
         let (low, _high) = iterator.size_hint();
         // Lower bound of one byte per code point (ASCII only)
         self.bytes.reserve(low);