summaryrefslogtreecommitdiffstats
path: root/grep-searcher/examples/search-stdin.rs
diff options
context:
space:
mode:
Diffstat (limited to 'grep-searcher/examples/search-stdin.rs')
-rw-r--r--grep-searcher/examples/search-stdin.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/grep-searcher/examples/search-stdin.rs b/grep-searcher/examples/search-stdin.rs
index 9d642973..9ce14915 100644
--- a/grep-searcher/examples/search-stdin.rs
+++ b/grep-searcher/examples/search-stdin.rs
@@ -17,7 +17,7 @@ fn main() {
}
}
-fn example() -> Result<(), Box<Error>> {
+fn example() -> Result<(), Box<dyn Error>> {
let pattern = match env::args().nth(1) {
Some(pattern) => pattern,
None => return Err(From::from(format!(