mirror of
https://github.com/rust-lang/rust.git
synced 2026-05-23 02:27:39 +03:00
d5b0cbbeea
Document thread builder panics for nul bytes in thread names This seems to have been undocumented. Mention this where the name is set (Builder::name) and where the panic could happen (Builder::spawn). Thread::new is private and I think the builder is the only user where this matters. A short comment was added to "document" Thread::new too.