Skip to content

Commit bcb3cfb

Browse files
committed
core::rt: Improve docs for run_in_newsched_task testing function
1 parent 6e17202 commit bcb3cfb

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/libcore/rt/test.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,8 @@
1010

1111
use super::io::net::ip::{IpAddr, Ipv4};
1212

13-
// For setting up tests of the new scheduler
13+
/// Creates a new scheduler in a new thread and runs a task in it,
14+
/// then waits for the scheduler to exit.
1415
pub fn run_in_newsched_task(f: ~fn()) {
1516
use cell::Cell;
1617
use unstable::run_in_bare_thread;

0 commit comments

Comments
 (0)