Skip to content
Snippets Groups Projects
Commit 9709f048 authored by Matthew Hall's avatar Matthew Hall
Browse files

Merge pull request #2 from KevinBalz/master

Updated the example in the README
parents 42d4e997 d088fab3
No related branches found
No related tags found
No related merge requests found
......@@ -26,8 +26,7 @@ git = "https://github.com/mattyhall/rs-tiled.git"
extern crate serialize;
extern crate tiled;
use std::io::File;
use std::io::BufferedReader;
use std::old_io::{File, BufferedReader};
use tiled::parse;
fn main() {
......@@ -35,8 +34,8 @@ fn main() {
println!("Opened file");
let reader = BufferedReader::new(file);
let map = parse(reader).unwrap();
println!("{}", map);
println!("{}", map.get_tileset_by_gid(22));
println!("{:?}", map);
println!("{:?}", map.get_tileset_by_gid(22));
}
```
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment