getsentry / rust-sourcemap

A library for rust that implements basic sourcemap handling
Other
224 stars 27 forks source link

Add "read" example from API documentation #3

Closed Turbo87 closed 7 years ago

Turbo87 commented 7 years ago

This PR adds the usage example from https://github.com/mitsuhiko/rust-sourcemap/blob/fa7065ab3529c646979ab0c39d3d655dd943cd8c/src/lib.rs#L26-L39 as a runnable example binary (cargo run --example read <path> [line=0] [column=0])

Turbo87 commented 7 years ago

@mitsuhiko any comments?

mitsuhiko commented 7 years ago

Looks good!