Skip to content

Commit 354a2d2

Browse files
committed
uutests: fix the rust doc
1 parent 0ed17a1 commit 354a2d2

File tree

2 files changed

+10
-9
lines changed

2 files changed

+10
-9
lines changed

tests/uutests/src/lib/macros.rs

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -47,8 +47,8 @@ macro_rules! util_name {
4747
/// This macro is intended for quick, single-call tests. For more complex tests
4848
/// that require multiple invocations of the tested binary, see [`TestScenario`]
4949
///
50-
/// [`UCommand`]: crate::tests::common::util::UCommand
51-
/// [`TestScenario]: crate::tests::common::util::TestScenario
50+
/// [`UCommand`]: crate::util::UCommand
51+
/// [`TestScenario`]: crate::util::TestScenario
5252
#[macro_export]
5353
macro_rules! new_ucmd {
5454
() => {
@@ -65,9 +65,9 @@ macro_rules! new_ucmd {
6565
/// This macro is intended for quick, single-call tests. For more complex tests
6666
/// that require multiple invocations of the tested binary, see [`TestScenario`]
6767
///
68-
/// [`UCommand`]: crate::tests::common::util::UCommand
69-
/// [`AtPath`]: crate::tests::common::util::AtPath
70-
/// [`TestScenario]: crate::tests::common::util::TestScenario
68+
/// [`UCommand`]: crate::util::UCommand
69+
/// [`AtPath`]: crate::util::AtPath
70+
/// [`TestScenario`]: crate::util::TestScenario
7171
#[macro_export]
7272
macro_rules! at_and_ucmd {
7373
() => {{

tests/uutests/src/lib/util.rs

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1382,7 +1382,8 @@ impl UCommand {
13821382

13831383
/// Set the working directory for this [`UCommand`]
13841384
///
1385-
/// Per default the working directory is set to the [`UCommands`] temporary directory.
1385+
/// Per default the working directory is set to the [`UCommand`] temporary directory.
1386+
///
13861387
pub fn current_dir<T>(&mut self, current_dir: T) -> &mut Self
13871388
where
13881389
T: Into<PathBuf>,
@@ -2637,7 +2638,7 @@ impl UChild {
26372638
/// [`UChild::pipe_in`].
26382639
///
26392640
/// # Errors
2640-
/// If [`ChildStdin::write_all`] or [`ChildStdin::flush`] returned an error
2641+
/// If [`std::process::ChildStdin::write_all`] or [`std::process::ChildStdin::flush`] returned an error
26412642
pub fn try_write_in<T: Into<Vec<u8>>>(&mut self, data: T) -> io::Result<()> {
26422643
let ignore_stdin_write_error = self.ignore_stdin_write_error;
26432644
let mut writer = self.access_stdin_as_writer();
@@ -2659,7 +2660,7 @@ impl UChild {
26592660

26602661
/// Close the child process stdout.
26612662
///
2662-
/// Note this will have no effect if the output was captured with [`CapturedOutput`] which is the
2663+
/// Note this will have no effect if the output was captured with CapturedOutput which is the
26632664
/// default if [`UCommand::set_stdout`] wasn't called.
26642665
pub fn close_stdout(&mut self) -> &mut Self {
26652666
self.raw.stdout.take();
@@ -2668,7 +2669,7 @@ impl UChild {
26682669

26692670
/// Close the child process stderr.
26702671
///
2671-
/// Note this will have no effect if the output was captured with [`CapturedOutput`] which is the
2672+
/// Note this will have no effect if the output was captured with CapturedOutput which is the
26722673
/// default if [`UCommand::set_stderr`] wasn't called.
26732674
pub fn close_stderr(&mut self) -> &mut Self {
26742675
self.raw.stderr.take();

0 commit comments

Comments
 (0)