diff options
author | Rory Dudley | 2024-06-30 20:09:26 -0600 |
---|---|---|
committer | Rory Dudley | 2024-06-30 20:09:26 -0600 |
commit | b8338719e2cc2138bc67c10ad56fb707f5e3b546 (patch) | |
tree | c27c2dc3a6dc7491da94e47eaad4530e855d17f1 /src/poem/anthology/cd.rs | |
parent | e23e4a036008a6f3a3356d48434615a05dcc17e0 (diff) | |
download | dwarvish-b8338719e2cc2138bc67c10ad56fb707f5e3b546.tar.gz |
Add/update doc comments
This patch update a ton of the documentation comments throughout the
codebase, refactoring some areas, and adding new comments to others.
Diffstat (limited to 'src/poem/anthology/cd.rs')
-rw-r--r-- | src/poem/anthology/cd.rs | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/src/poem/anthology/cd.rs b/src/poem/anthology/cd.rs index bdf04f6..4427536 100644 --- a/src/poem/anthology/cd.rs +++ b/src/poem/anthology/cd.rs @@ -5,13 +5,16 @@ use std::process::{ExitStatus, Output}; /// cd /// /// The builtin `cd` command. Used to change directories. This must be -/// implemented by the shell, since the `pwd` is context sensitive within a -/// process. If no arguments are given, `cd` will take the user back to their -/// home directory (i.e. `~`). +/// implemented by the shell, since the present working directory +/// (`pwd`) is context sensitive within a process. If no arguments are +/// given, `cd` will take the user back to their home directory (i.e. +/// `~` / `$HOME`). /// /// # Shell Example /// ```sh /// cd ~/.config # Change into /home/<user>/.config +/// cd / # Change into the root directory +/// cd # Change into the home directory /// ``` pub fn incant(clause: &Option<Vec<String>>, uerr: bool) -> Output { let status; |