Skip to content

Commit 1da2edc

Browse files
Copilotjosecelano
andcommitted
fix: update doctest example to include working_dir parameter
The DestroyError::help() doctest example was still using the old function signature with only one parameter. Updated to include the required working_dir parameter. Fixes failing doctest: destroy::handle now requires two arguments. Co-authored-by: josecelano <58816+josecelano@users.noreply.github.com>
1 parent a08fae4 commit 1da2edc

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

src/presentation/commands/destroy.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -168,9 +168,10 @@ impl DestroyError {
168168
///
169169
/// ```rust
170170
/// use torrust_tracker_deployer_lib::presentation::commands::destroy;
171+
/// use std::path::Path;
171172
///
172173
/// # fn main() -> Result<(), Box<dyn std::error::Error>> {
173-
/// if let Err(e) = destroy::handle("test-env") {
174+
/// if let Err(e) = destroy::handle("test-env", Path::new(".")) {
174175
/// eprintln!("Error: {e}");
175176
/// eprintln!("\nTroubleshooting:\n{}", e.help());
176177
/// }

0 commit comments

Comments
 (0)