Skip to content

Commit c7c7a43

Browse files
committed
style: reword ast::print docs
Also, small formatting fix and removal of debugging test.
1 parent 37379b0 commit c7c7a43

File tree

1 file changed

+2
-7
lines changed

1 file changed

+2
-7
lines changed

regex-syntax/src/ast/print.rs

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
// except according to those terms.
1010

1111
/*!
12-
This module provides a regular expression printer.
12+
This module provides a regular expression printer for `Ast`.
1313
*/
1414

1515
use std::fmt;
@@ -422,7 +422,7 @@ mod tests {
422422
}
423423

424424
fn roundtrip_with<F>(mut f: F, given: &str)
425-
where F: FnMut(&mut ParserBuilder) -> &mut ParserBuilder
425+
where F: FnMut(&mut ParserBuilder) -> &mut ParserBuilder
426426
{
427427
let mut builder = ParserBuilder::new();
428428
f(&mut builder);
@@ -434,11 +434,6 @@ mod tests {
434434
assert_eq!(given, dst);
435435
}
436436

437-
#[test]
438-
fn scratch() {
439-
roundtrip(".");
440-
}
441-
442437
#[test]
443438
fn print_literal() {
444439
roundtrip("a");

0 commit comments

Comments
 (0)