diff options
| author | Kamal Marhubi <kamal@marhubi.com> | 2016-03-28 13:55:47 -0400 |
|---|---|---|
| committer | Kamal Marhubi <kamal@marhubi.com> | 2016-03-28 13:59:38 -0400 |
| commit | 93569acdbe09a63a670a5a5ad6bd0a2e2d8a90b9 (patch) | |
| tree | 45708e55bd2773669c964b2d226a37fb25d06acf /src/librustc_unicode | |
| parent | 3602f34e9cfe542210b6ac4302ae8d0f0799965b (diff) | |
| download | rust-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/librustc_unicode')
| -rw-r--r-- | src/librustc_unicode/char.rs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/librustc_unicode/char.rs b/src/librustc_unicode/char.rs index 7b9296bb4c8..4d8021138a0 100644 --- a/src/librustc_unicode/char.rs +++ b/src/librustc_unicode/char.rs @@ -748,7 +748,7 @@ pub struct DecodeUtf16<I> buf: Option<u16>, } -/// Create an iterator over the UTF-16 encoded code points in `iterable`, +/// Create an iterator over the UTF-16 encoded code points in `iter`, /// returning unpaired surrogates as `Err`s. /// /// # Examples @@ -796,9 +796,9 @@ pub struct DecodeUtf16<I> /// ``` #[unstable(feature = "decode_utf16", reason = "recently exposed", issue = "27830")] #[inline] -pub fn decode_utf16<I: IntoIterator<Item = u16>>(iterable: I) -> DecodeUtf16<I::IntoIter> { +pub fn decode_utf16<I: IntoIterator<Item = u16>>(iter: I) -> DecodeUtf16<I::IntoIter> { DecodeUtf16 { - iter: iterable.into_iter(), + iter: iter.into_iter(), buf: None, } } |
