Skip to content

Commit 361fc1a

Browse files
committed
Merge pull request #6 from iliekturtles/patch-1
Fix compile errors in example
2 parents b2531b0 + 1f0c1aa commit 361fc1a

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

Readme.md

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,8 @@ which allow to create a parser from string or a byte vector.
5555
over events:
5656

5757
```rust
58+
#![feature(globs)]
59+
5860
extern crate xml;
5961

6062
use std::io::File;
@@ -79,11 +81,11 @@ fn main() {
7981
let mut depth = 0;
8082
for e in parser.events() {
8183
match e {
82-
StartElement { name, _, _ } => {
84+
StartElement { name, .. } => {
8385
println!("{}/{}", indent(depth), name);
8486
depth += 1;
8587
}
86-
EndElement(name) => {
88+
EndElement { name } => {
8789
depth -= 1;
8890
println!("{}/{}", indent(depth), name);
8991
}

0 commit comments

Comments
 (0)