Skip to content

Commit cbb695f

Browse files
authored
fix some typos
1 parent 6c57229 commit cbb695f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/data_race.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@
4444
//! required for accurate reporting of data-race values.
4545
//!
4646
//! As per the paper a threads timestamp is only incremented after a release operation is performed
47-
//! so some atomic operations that only perform acquires do not increment the timestamp, due to shared
47+
//! so some atomic operations that only perform acquires do not increment the timestamp. Due to shared
4848
//! code some atomic operations may increment the timestamp when not necessary but this has no effect
4949
//! on the data-race detection code.
5050
//!
@@ -634,7 +634,7 @@ pub trait EvalContextExt<'mir, 'tcx: 'mir>: MiriEvalContextExt<'mir, 'tcx> {
634634
clocks.apply_release_fence();
635635
}
636636

637-
// Increment timestamp if hase release semantics
637+
// Increment timestamp in case of release semantics.
638638
Ok(atomic != AtomicFenceOp::Acquire)
639639
})
640640
} else {

0 commit comments

Comments
 (0)