Skip to content
This repository was archived by the owner on Aug 20, 2021. It is now read-only.

Commit 9ecf401

Browse files
committed
Simplify return type in example
1 parent 7e8ba7f commit 9ecf401

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ use std::io::{self, Write};
3939
use std::fs::File;
4040
use tempdir::TempDir;
4141

42-
fn write_temp_folder_with_files() -> Result<(), io::Error> {
42+
fn write_temp_folder_with_files() -> io::Result<()> {
4343
let dir = TempDir::new("my_directory_prefix")?;
4444
let file_path = dir.path().join("foo.txt");
4545
println!("{:?}", file_path);

0 commit comments

Comments
 (0)