From d8832713c65b2629ec23b29ee5881527647b5a63 Mon Sep 17 00:00:00 2001 From: gwenn <gtreguier@gmail.com> Date: Sun, 2 Oct 2016 09:29:20 +0200 Subject: [PATCH] Fix #80 --- src/history.rs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/history.rs b/src/history.rs index aa5f22f2..c54d7ef9 100644 --- a/src/history.rs +++ b/src/history.rs @@ -104,6 +104,9 @@ impl History { } /// Load the history from the specified file. + /// + /// # Failure + /// Will return `Err` if path does not already exist. pub fn load<P: AsRef<Path> + ?Sized>(&mut self, path: &P) -> Result<()> { use std::io::{BufRead, BufReader}; -- GitLab