Skip to content

Commit

Permalink
Stabilize std::process::id()
Browse files Browse the repository at this point in the history
Fixes #44971
  • Loading branch information
tmccombs committed Apr 2, 2018
1 parent 06fa27d commit d4f5e89
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/libstd/process.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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()
}
Expand Down

0 comments on commit d4f5e89

Please sign in to comment.