From d7b55e4c90b6723d95b7cb8c152660b2ef7afcba Mon Sep 17 00:00:00 2001 From: joboet Date: Mon, 1 Apr 2024 15:28:27 +0200 Subject: [PATCH] update comment --- library/std/src/rt.rs | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/library/std/src/rt.rs b/library/std/src/rt.rs index 0bafd9f352e..ff6e433ebce 100644 --- a/library/std/src/rt.rs +++ b/library/std/src/rt.rs @@ -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); }