Skip to content

Commit ada7b72

Browse files
committed
Auto merge of rust-lang#2227 - RalfJung:doc, r=RalfJung
make some rustdoc comments more readable
2 parents c5f7a7d + 5f1ba44 commit ada7b72

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/concurrency/data_race.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
//! because it only re-uses vector indexes once all currently-active (not-terminated) threads have an internal
2525
//! vector clock that happens-after the join operation of the candidate thread. Threads that have not been joined
2626
//! on are not considered. Since the thread's vector clock will only increase and a data-race implies that
27-
//! there is some index x where clock\[x\] > thread_clock, when this is true clock\[candidate-idx\] > thread_clock
27+
//! there is some index x where `clock[x] > thread_clock`, when this is true `clock[candidate-idx] > thread_clock`
2828
//! can never hold and hence a data-race can never be reported in that vector index again.
2929
//! This means that the thread-index can be safely re-used, starting on the next timestamp for the newly created
3030
//! thread.

0 commit comments

Comments
 (0)