Skip to content

Commit 7d43bcb

Browse files
committed
Capitalize comments.
1 parent 948e402 commit 7d43bcb

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

library/alloc/src/sync.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff 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();

library/alloc/src/sync/tests.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@ fn try_unwrap() {
104104
#[test]
105105
fn 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);

0 commit comments

Comments
 (0)