Skip to content

Commit 4ac0279

Browse files
authored
Update README.md
1 parent cc988f2 commit 4ac0279

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

README.md

+3-3
Original file line numberDiff line numberDiff line change
@@ -46,17 +46,17 @@ cmake --build build
4646

4747
```cpp
4848
// Match on a single pattern
49-
for (auto& p : glob::glob("*.png")) {
49+
for (auto& p : glob::glob("~/.b*")) { // e.g., .bash_history, .bashrc
5050
// do something with `p`
5151
}
5252

5353
// Match on multiple patterns
54-
for (auto& p : glob::glob({"*.png", "*.jpg"})) {
54+
for (auto& p : glob::glob({"*.png", "*.jpg"})) { // e.g., foo.png, bar.jpg
5555
// do something with `p`
5656
}
5757

5858
// Match recursively with `rglob`
59-
for (auto& p : glob::rglob("**/*.hpp")) {
59+
for (auto& p : glob::rglob("**/*.hpp")) { // e.g., include/foo.hpp, include/foo/bar.hpp
6060
// do something with `p`
6161
}
6262
```

0 commit comments

Comments
 (0)