aboutsummaryrefslogtreecommitdiff
path: root/README.md
diff options
context:
space:
mode:
authorMarkus Unterwaditzer <markus@unterwaditzer.net>2021-11-26 18:38:58 +0100
committerGitHub <noreply@github.com>2021-11-26 18:38:58 +0100
commitdced8066f77f570dd3e396ec3570c71aa86c454e (patch)
tree2fb81d5f411319948c135dfaaa78bc5da6783621 /README.md
parent029c13426634e58adb3996c9a5e4d79c3e8437f2 (diff)
Read html from io::BufRead (#8)
Diffstat (limited to 'README.md')
-rw-r--r--README.md2
1 files changed, 1 insertions, 1 deletions
diff --git a/README.md b/README.md
index 1763706..425ee18 100644
--- a/README.md
+++ b/README.md
@@ -12,7 +12,7 @@ use html5gum::{Tokenizer, Token};
let html = "<title >hello world</title>";
let mut new_html = String::new();
-for token in Tokenizer::new(html) {
+for token in Tokenizer::new(html).infallible() {
match token {
Token::StartTag(tag) => {
write!(new_html, "<{}>", tag.name).unwrap();