Skip to content

Commit

Permalink
remove a comment
Browse files Browse the repository at this point in the history
  • Loading branch information
ChristopherBiscardi committed Dec 14, 2020
1 parent 33c9b0e commit 0d260ea
Showing 1 changed file with 0 additions and 11 deletions.
11 changes: 0 additions & 11 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -17,17 +17,6 @@ pub fn parse(
mdx_elements(input).map(|ast| Mdx { ast })
}

// TODO: This function should not panic
// pub fn parse<'a>(input: &'a str) -> Result<Mdx<'a>, std::io::Error> {
// let result = mdx(input);
// match result {
// Ok(("", m @ Mdx { .. })) => Ok(m),
// Ok((i, m)) => panic!("leftover input {}
// parsed: {:?}", i, m),
// e => panic!("something went wrong. TODO error message {:?}", e),
// }
// }

// TODO: there's probably a trait we can do for this?
// maybe Display somehow?
pub fn stringify(m: Mdx) -> String {
Expand Down

0 comments on commit 0d260ea

Please sign in to comment.