Skip to content

Commit 33d2637

Browse files
committed
update comment
1 parent 2b790b4 commit 33d2637

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

std/src/rt.rs

+1-4
Original file line numberDiff line numberDiff line change
@@ -95,10 +95,7 @@ unsafe fn init(argc: isize, argv: *const *const u8, sigpipe: u8) {
9595
unsafe {
9696
sys::init(argc, argv, sigpipe);
9797

98-
// Next, set up the current Thread with the guard information we just
99-
// created. Note that this isn't necessary in general for new threads,
100-
// but we just do this to name the main thread and to give it correct
101-
// info about the stack bounds.
98+
// Set up the current thread to give it the right name.
10299
let thread = Thread::new(Some(rtunwrap!(Ok, CString::new("main"))));
103100
thread::set_current(thread);
104101
}

0 commit comments

Comments
 (0)