Skip to content

Commit

Permalink
style: reword ast::print docs
Browse files Browse the repository at this point in the history
Also, small formatting fix and removal of debugging test.
  • Loading branch information
BurntSushi committed Mar 13, 2018
1 parent 37379b0 commit e3d6e7c
Showing 1 changed file with 2 additions and 7 deletions.
9 changes: 2 additions & 7 deletions regex-syntax/src/ast/print.rs
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
// except according to those terms.

/*!
This module provides a regular expression printer.
This module provides a regular expression printer for `Ast`.
*/

use std::fmt;
Expand Down Expand Up @@ -422,7 +422,7 @@ mod tests {
}

fn roundtrip_with<F>(mut f: F, given: &str)
where F: FnMut(&mut ParserBuilder) -> &mut ParserBuilder
where F: FnMut(&mut ParserBuilder) -> &mut ParserBuilder
{
let mut builder = ParserBuilder::new();
f(&mut builder);
Expand All @@ -434,11 +434,6 @@ mod tests {
assert_eq!(given, dst);
}

#[test]
fn scratch() {
roundtrip(".");
}

#[test]
fn print_literal() {
roundtrip("a");
Expand Down

0 comments on commit e3d6e7c

Please sign in to comment.