File tree 1 file changed +10
-0
lines changed
1 file changed +10
-0
lines changed Original file line number Diff line number Diff line change @@ -23,6 +23,11 @@ use crate::sys::os as os_imp;
23
23
24
24
/// Returns the current working directory as a [`PathBuf`].
25
25
///
26
+ /// # Platform-specific behavior
27
+ ///
28
+ /// This function currently corresponds to the `getcwd` function on Unix
29
+ /// and the `GetCurrentDirectoryW` function on Windows.
30
+ ///
26
31
/// # Errors
27
32
///
28
33
/// Returns an [`Err`] if the current working directory value is invalid.
@@ -49,6 +54,11 @@ pub fn current_dir() -> io::Result<PathBuf> {
49
54
50
55
/// Changes the current working directory to the specified path.
51
56
///
57
+ /// # Platform-specific behavior
58
+ ///
59
+ /// This function currently corresponds to the `chdir` function on Unix
60
+ /// and the `SetCurrentDirectoryW` function on Windows.
61
+ ///
52
62
/// Returns an [`Err`] if the operation fails.
53
63
///
54
64
/// # Examples
You can’t perform that action at this time.
0 commit comments