about summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--src/libstd/process.rs7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/libstd/process.rs b/src/libstd/process.rs
index 711d8df1b60..dee01df651d 100644
--- a/src/libstd/process.rs
+++ b/src/libstd/process.rs
@@ -1174,14 +1174,15 @@ pub fn abort() -> ! {
 /// Basic usage:
 ///
 /// ```no_run
-/// use std::process::current_pid;
+/// #![feature(getpid)]
+/// use std::process;
 ///
-/// println!("My pid is {}", current_pid());
+/// println!("My pid is {}", process::id());
 /// ```
 ///
 ///
 #[unstable(feature = "getpid", issue = "44971", reason = "recently added")]
-pub fn current_pid() -> u32 {
+pub fn id() -> u32 {
     ::sys::os::getpid()
 }