Skip to content

Commit 70070b8

Browse files
committed
task.rs: minor doc/comment changes
1 parent efb3227 commit 70070b8

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

src/libcore/task.rs

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -88,13 +88,13 @@ enum notification {
8888

8989
#[doc = "Scheduler modes"]
9090
enum sched_mode {
91-
#[doc = "All tasks run in the same OS thread"]
91+
#[doc = "1:N -- All tasks run in the same OS thread"]
9292
single_threaded,
93-
#[doc = "Tasks are distributed among available CPUs"]
93+
#[doc = "M:N -- Tasks are distributed among available CPUs"]
9494
thread_per_core,
95-
#[doc = "Each task runs in its own OS thread"]
95+
#[doc = "N:N -- Each task runs in its own OS thread"]
9696
thread_per_task,
97-
#[doc = "Tasks are distributed among a fixed number of OS threads"]
97+
#[doc = "?:N -- Tasks are distributed among a fixed number of OS threads"]
9898
manual_threads(uint),
9999
#[doc = "
100100
Tasks are scheduled on the main OS thread
@@ -168,7 +168,7 @@ Provides detailed control over the properties and behavior of new tasks.
168168
// it only applies to a single task, so then you have to maintain some
169169
// potentially tricky state to ensure that everything behaves correctly
170170
// when you try to reuse the builder to spawn a new task. We'll just
171-
// sidestep that whole issue by making builder's uncopyable and making
171+
// sidestep that whole issue by making builders uncopyable and making
172172
// the run function move them in.
173173
enum builder {
174174
builder_({

0 commit comments

Comments
 (0)