terminology: &T and &mut T are the types of *references*. Also, stress the exclusivit...
[rust-101.git] / workspace / src / part08.rs
index 01189060eb1b958256583d0eb1717bcc94319976..5ddcb3344cf8652ada5e6a3f0f5f4fe4e4cc5892 100644 (file)
@@ -56,11 +56,11 @@ impl ops::Add<BigInt> for BigInt {
     }
 }
 
-// ## Traits and borrowed types
+// ## Traits and reference types
 
 // Writing this out becomes a bit tedious, because trait implementations (unlike functions) require full explicit annotation
 // of lifetimes. Make sure you understand exactly what the following definition says. Notice that we can implement a trait for
-// a borrowed type!
+// a reference type!
 impl<'a, 'b> ops::Add<&'a BigInt> for &'b BigInt {
     type Output = BigInt;
     fn add(self, rhs: &'a BigInt) -> Self::Output {