Skip to content

Commit

Permalink
Add documentation to expr::SPECIAL_MACRO_WHITELIST
Browse files Browse the repository at this point in the history
  • Loading branch information
dtwood committed Dec 24, 2017
1 parent 3320b40 commit 0291331
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/expr.rs
Expand Up @@ -1811,6 +1811,12 @@ fn rewrite_string_lit(context: &RewriteContext, span: Span, shape: Shape) -> Opt
)
}

/// A list of `format!`-like macros, that take a long format string and a list of arguments to
/// format.
///
/// Organized as a list of `(&str, usize)` tuples, giving the name of the macro and the number of
/// arguments before the format string (none for `format!("format", ...)`, one for `assert!(result,
/// "format", ...)`, two for `assert_eq!(left, right, "format", ...)`).
const SPECIAL_MACRO_WHITELIST: &[(&str, usize)] = &[
// format! like macros
// From the Rust Standard Library.
Expand Down

0 comments on commit 0291331

Please sign in to comment.