Skip to content

Commit e243d5d

Browse files
committed
clippy: fix doc comment indentation
1 parent dcd9012 commit e243d5d

File tree

2 files changed

+14
-14
lines changed

2 files changed

+14
-14
lines changed

src/sorts/regions_sort.rs

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -10,15 +10,15 @@
1010
//! 2. Compute counts for each bucket and sort each bucket in-place
1111
//! 3. Generate global counts
1212
//! 4. Generate Graph & Sort
13-
//! 4.1 List outbound regions for each country
14-
//! 4.2 For each country (C):
15-
//! 4.2.1: List the inbounds for C (filter outbounds for each other country by destination: C)
16-
//! 4.2.2: For each thread:
17-
//! 4.2.2.1: Pop an item off the inbound (country: I) & outbound (country: O) queues for C
18-
//! 4.2.2.2/a: If they are the same size, continue
19-
//! 4.2.2.2/b: If I is bigger than O, keep the remainder of I in the queue and continue
20-
//! 4.2.2.2/c: If O is bigger than I, keep the remainder of O in the queue and continue
21-
//! 4.2.2.3: Swap items in C heading to O, with items in I destined for C (items in C may or may not be destined for O ultimately)
13+
//! 4.1 List outbound regions for each country
14+
//! 4.2 For each country (C):
15+
//! 4.2.1: List the inbounds for C (filter outbounds for each other country by destination: C)
16+
//! 4.2.2: For each thread:
17+
//! 4.2.2.1: Pop an item off the inbound (country: I) & outbound (country: O) queues for C
18+
//! 4.2.2.2/a: If they are the same size, continue
19+
//! 4.2.2.2/b: If I is bigger than O, keep the remainder of I in the queue and continue
20+
//! 4.2.2.2/c: If O is bigger than I, keep the remainder of O in the queue and continue
21+
//! 4.2.2.3: Swap items in C heading to O, with items in I destined for C (items in C may or may not be destined for O ultimately)
2222
//!
2323
//! ## Characteristics
2424
//!

src/sorts/scanning_sort.rs

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -6,11 +6,11 @@
66
//! 2. Create a worker for each rayon global thread pool thread (roughly, one per core)
77
//! 2. Create a temporary thread-local buffer for each worker (one vec for each radix)
88
//! 3. Each thread:
9-
//! 3.1. Iterates over the buckets, trying to gain a mutex lock on one
10-
//! 3.2. On first lock of the bucket, it partitions the bucket into [correct data | incorrect data] in-place
11-
//! 3.3. Scan over the contents of the bucket, picking up data that shouldn't be there and putting it in the thread-local buffer
12-
//! 3.4. Writes any buffered contents that _should_ be in this bucket, into the bucket
13-
//! 3.5. Repeats 3 until all buckets are completely filled with the correct data
9+
//! 3.1. Iterates over the buckets, trying to gain a mutex lock on one
10+
//! 3.2. On first lock of the bucket, it partitions the bucket into [correct data | incorrect data] in-place
11+
//! 3.3. Scan over the contents of the bucket, picking up data that shouldn't be there and putting it in the thread-local buffer
12+
//! 3.4. Writes any buffered contents that _should_ be in this bucket, into the bucket
13+
//! 3.5. Repeats 3 until all buckets are completely filled with the correct data
1414
//!
1515
//! Along the way, each output bucket has a read head and a write head, which is a pointer to the latest content read and written respectively.
1616
//! When the read head reaches the end of the bucket, there is no more content to be buffered by any worker.

0 commit comments

Comments
 (0)