Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/windirstat/walkdir.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoropilarium <opilar@ya.ru>2017-09-22 14:29:09 +0300
committerAndrew Gallant <jamslam@gmail.com>2017-09-30 15:22:58 +0300
commit13fdfb47518976bdd47698feb6c19c53474f3018 (patch)
tree9d624240f0eb0e6f9c16d328c2cf3568247ea653 /README.md
parentfcbb831799c6692c22807de49839f11bde612b1f (diff)
no_run attribute instead of rust,no_run
rust syntax is by default
Diffstat (limited to 'README.md')
-rw-r--r--README.md8
1 files changed, 4 insertions, 4 deletions
diff --git a/README.md b/README.md
index 97d6840..1ef3cb0 100644
--- a/README.md
+++ b/README.md
@@ -30,7 +30,7 @@ walkdir = "1"
The following code recursively iterates over the directory given and prints
the path for each entry:
-```rust,no_run
+```no_run
use walkdir::WalkDir;
for entry in WalkDir::new("foo") {
@@ -43,7 +43,7 @@ Or, if you'd like to iterate over all entries and ignore any errors that may
arise, use `filter_map`. (e.g., This code below will silently skip directories
that the owner of the running process does not have permission to access.)
-```rust,no_run
+```no_run
use walkdir::WalkDir;
for entry in WalkDir::new("foo").into_iter().filter_map(|e| e.ok()) {
@@ -55,7 +55,7 @@ for entry in WalkDir::new("foo").into_iter().filter_map(|e| e.ok()) {
The same code as above, except `follow_links` is enabled:
-```rust,no_run
+```no_run
use walkdir::WalkDir;
for entry in WalkDir::new("foo").follow_links(true) {
@@ -69,7 +69,7 @@ for entry in WalkDir::new("foo").follow_links(true) {
This uses the `filter_entry` iterator adapter to avoid yielding hidden files
and directories efficiently:
-```rust,no_run
+```no_run
use walkdir::{DirEntry, WalkDir};
fn is_hidden(entry: &DirEntry) -> bool {