File tree Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -595,7 +595,7 @@ impl<T> Arc<T> {
595595 /// }
596596 /// }
597597 ///
598- /// // implementation of `new` and `push` omitted
598+ /// // Implementation of `new` and `push` omitted
599599 /// impl<T> LinkedList<T> {
600600 /// /* ... */
601601 /// # fn new() -> Self {
@@ -610,14 +610,14 @@ impl<T> Arc<T> {
610610 /// // despite the manual `Drop` impl if that `Drop` impl used
611611 /// // `Arc::try_unwrap(arc).ok()` instead of `Arc::unwrap_or_drop(arc)`.
612612 /// {
613- /// // create a long list and clone it
613+ /// // Create a long list and clone it
614614 /// let mut x = LinkedList::new();
615615 /// for i in 0..100000 {
616- /// x.push(i); // adds i to the front of x
616+ /// x.push(i); // Adds i to the front of x
617617 /// }
618618 /// let y = x.clone();
619619 ///
620- /// // drop the clones in parallel
620+ /// // Drop the clones in parallel
621621 /// let t1 = std::thread::spawn(|| drop(x));
622622 /// let t2 = std::thread::spawn(|| drop(y));
623623 /// t1.join().unwrap();
Original file line number Diff line number Diff line change @@ -104,7 +104,7 @@ fn try_unwrap() {
104104#[ test]
105105fn unwrap_or_drop ( ) {
106106 for _ in 0 ..100
107- // ^ increase chances of hitting potential race conditions
107+ // ^ Increase chances of hitting potential race conditions
108108 {
109109 let x = Arc :: new ( 3 ) ;
110110 let y = Arc :: clone ( & x) ;
You can’t perform that action at this time.
0 commit comments