提交 d4f5e89e 编写于 作者: T Thayne McCombs

Stabilize `std::process::id()`

Fixes #44971
上级 06fa27d7
......@@ -1420,14 +1420,13 @@ pub fn abort() -> ! {
/// Basic usage:
///
/// ```no_run
/// #![feature(getpid)]
/// use std::process;
///
/// println!("My pid is {}", process::id());
/// ```
///
///
#[unstable(feature = "getpid", issue = "44971", reason = "recently added")]
#[stable(feature = "getpid", since = "1.27.0")]
pub fn id() -> u32 {
::sys::os::getpid()
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册