update comment

This commit is contained in:
joboet 2024-04-01 15:28:27 +02:00
parent 41434ff4a3
commit d7b55e4c90
No known key found for this signature in database
GPG Key ID: 704E0149B0194B3C

View File

@ -95,10 +95,7 @@ unsafe fn init(argc: isize, argv: *const *const u8, sigpipe: u8) {
unsafe {
sys::init(argc, argv, sigpipe);
// Next, set up the current Thread with the guard information we just
// created. Note that this isn't necessary in general for new threads,
// but we just do this to name the main thread and to give it correct
// info about the stack bounds.
// Set up the current thread to give it the right name.
let thread = Thread::new(Some(rtunwrap!(Ok, CString::new("main"))));
thread::set_current(thread);
}