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> {
595
595
/// }
596
596
/// }
597
597
///
598
- /// // implementation of `new` and `push` omitted
598
+ /// // Implementation of `new` and `push` omitted
599
599
/// impl<T> LinkedList<T> {
600
600
/// /* ... */
601
601
/// # fn new() -> Self {
@@ -610,14 +610,14 @@ impl<T> Arc<T> {
610
610
/// // despite the manual `Drop` impl if that `Drop` impl used
611
611
/// // `Arc::try_unwrap(arc).ok()` instead of `Arc::unwrap_or_drop(arc)`.
612
612
/// {
613
- /// // create a long list and clone it
613
+ /// // Create a long list and clone it
614
614
/// let mut x = LinkedList::new();
615
615
/// 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
617
617
/// }
618
618
/// let y = x.clone();
619
619
///
620
- /// // drop the clones in parallel
620
+ /// // Drop the clones in parallel
621
621
/// let t1 = std::thread::spawn(|| drop(x));
622
622
/// let t2 = std::thread::spawn(|| drop(y));
623
623
/// t1.join().unwrap();
Original file line number Diff line number Diff line change @@ -104,7 +104,7 @@ fn try_unwrap() {
104
104
#[ test]
105
105
fn unwrap_or_drop ( ) {
106
106
for _ in 0 ..100
107
- // ^ increase chances of hitting potential race conditions
107
+ // ^ Increase chances of hitting potential race conditions
108
108
{
109
109
let x = Arc :: new ( 3 ) ;
110
110
let y = Arc :: clone ( & x) ;
You can’t perform that action at this time.
0 commit comments