documentation examples fixes in rustfmt convention

This commit is contained in:
Abhijit Gadgil 2020-11-01 18:53:22 +05:30
parent 7c88bcc3f6
commit d422e2424f

View File

@ -109,10 +109,12 @@ fn not(self) -> $t { !self }
/// fn bitand(self, Self(rhs): Self) -> Self::Output {
/// let Self(lhs) = self;
/// assert_eq!(lhs.len(), rhs.len());
/// Self(lhs.iter()
/// Self(
/// lhs.iter()
/// .zip(rhs.iter())
/// .map(|(x, y)| *x & *y)
/// .collect())
/// .collect()
/// )
/// }
/// }
///
@ -207,10 +209,12 @@ fn bitand(self, rhs: $t) -> $t { self & rhs }
/// fn bitor(self, Self(rhs): Self) -> Self::Output {
/// let Self(lhs) = self;
/// assert_eq!(lhs.len(), rhs.len());
/// Self(lhs.iter()
/// Self(
/// lhs.iter()
/// .zip(rhs.iter())
/// .map(|(x, y)| *x | *y)
/// .collect())
/// .collect()
/// )
/// }
/// }
///
@ -305,10 +309,12 @@ fn bitor(self, rhs: $t) -> $t { self | rhs }
/// fn bitxor(self, Self(rhs): Self) -> Self::Output {
/// let Self(lhs) = self;
/// assert_eq!(lhs.len(), rhs.len());
/// Self(lhs.iter()
/// Self(
/// lhs.iter()
/// .zip(rhs.iter())
/// .map(|(x, y)| *x ^ *y)
/// .collect())
/// .collect()
/// )
/// }
/// }
///
@ -646,11 +652,13 @@ macro_rules! shr_impl_all {
/// // `rhs` is the "right-hand side" of the expression `a &= b`.
/// fn bitand_assign(&mut self, rhs: Self) {
/// assert_eq!(self.0.len(), rhs.0.len());
/// *self = Self(self.0
/// .iter()
/// .zip(rhs.0.iter())
/// .map(|(x, y)| *x & *y)
/// .collect());
/// *self = Self(
/// self.0
/// .iter()
/// .zip(rhs.0.iter())
/// .map(|(x, y)| *x & *y)
/// .collect()
/// );
/// }
/// }
///