Skip to content

Commit 0c05492

Browse files
committed
Auto merge of #28582 - jedireza:patch-1, r=huonw
Fixed typo in example code.
2 parents f17cc4c + 6de473a commit 0c05492

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/doc/trpl/error-handling.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -2064,7 +2064,7 @@ string and add a flag to the Option variable. Once were done that, Getopts does
20642064
let mut opts = Options::new();
20652065
opts.optopt("f", "file", "Choose an input file, instead of using STDIN.", "NAME");
20662066
opts.optflag("h", "help", "Show this usage message.");
2067-
opts.optflag("q", "quit", "Silences errors and warnings.");
2067+
opts.optflag("q", "quiet", "Silences errors and warnings.");
20682068
...
20692069
```
20702070

0 commit comments

Comments
 (0)