From be12ab070d733303355d433d68efb870e3da753b Mon Sep 17 00:00:00 2001 From: Matthias Geier Date: Fri, 26 Apr 2019 18:43:24 +0200 Subject: Use "capacity" as parameter name in with_capacity() methods Closes #60271. --- src/librustc_data_structures/bit_set.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/librustc_data_structures') diff --git a/src/librustc_data_structures/bit_set.rs b/src/librustc_data_structures/bit_set.rs index ff7964646d6..ec7ff3bd813 100644 --- a/src/librustc_data_structures/bit_set.rs +++ b/src/librustc_data_structures/bit_set.rs @@ -607,8 +607,8 @@ impl GrowableBitSet { GrowableBitSet { bit_set: BitSet::new_empty(0) } } - pub fn with_capacity(bits: usize) -> GrowableBitSet { - GrowableBitSet { bit_set: BitSet::new_empty(bits) } + pub fn with_capacity(capacity: usize) -> GrowableBitSet { + GrowableBitSet { bit_set: BitSet::new_empty(capacity) } } /// Returns `true` if the set has changed. -- cgit 1.4.1-3-g733a5