Skip to content

Commit

Permalink
fixed doc formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
ph0llux committed Apr 12, 2023
1 parent aeb9b7f commit 205ffc1
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/streamer.rs
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,8 @@ impl Default for StreamerReadMetadata {
/// let mut streamer = Streamer::new();
/// // Use the directory at one location, but insert it into the archive
/// // with a different name.
/// streamer.append_dir_all(&PathBuf::from("my_download_dir"), &PathBuf::from("/home/ph0llux/Downloads")).unwrap();
/// streamer.append_dir_all(&PathBuf::from("my_download_dir"),
/// &PathBuf::from("/home/ph0llux/Downloads")).unwrap();
/// // Write the archive to the given path.
/// let mut target_archive = fs::File::create("/home/ph0llux/my_downloads.tar").unwrap();
/// io::copy(&mut streamer, &mut target_archive).unwrap();
Expand Down

0 comments on commit 205ffc1

Please sign in to comment.