diff --git a/src/builder.rs b/src/builder.rs index b77379c..4654e55 100644 --- a/src/builder.rs +++ b/src/builder.rs @@ -395,9 +395,11 @@ impl Builder { /// /// let mut ar = Builder::new(Vec::new()); /// + /// let td = tempfile::tempdir()?; + /// /// // Use the directory at one location, but insert it into the archive /// // with a different name. - /// ar.append_dir_all("bardir", ".").await?; + /// ar.append_dir_all("bardir", td.path()).await?; /// # /// # Ok(()) }) } /// ```