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

Commit

Permalink
Simplify return type in example
Browse files Browse the repository at this point in the history
  • Loading branch information
rfdonnelly committed Jan 2, 2018
1 parent 7e8ba7f commit 9ecf401
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ use std::io::{self, Write};
use std::fs::File;
use tempdir::TempDir;

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

0 comments on commit 9ecf401

Please sign in to comment.