Skip to content

Commit 0a59eba

Browse files
Rollup merge of #37486 - msiglreith:pr_doc_bitandassign, r=apasel422
Fix typo in the BitAndAssign operator documentation The name of the operator should be `&=` instead of `&`.
2 parents aa80a8c + 9802c4c commit 0a59eba

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/libcore/ops.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1645,7 +1645,7 @@ rem_assign_impl! { usize u8 u16 u32 u64 isize i8 i16 i32 i64 f32 f64 }
16451645
#[lang = "bitand_assign"]
16461646
#[stable(feature = "op_assign_traits", since = "1.8.0")]
16471647
pub trait BitAndAssign<Rhs=Self> {
1648-
/// The method for the `&` operator
1648+
/// The method for the `&=` operator
16491649
#[stable(feature = "op_assign_traits", since = "1.8.0")]
16501650
fn bitand_assign(&mut self, Rhs);
16511651
}

0 commit comments

Comments
 (0)