Skip to content

Commit

Permalink
Rollup merge of rust-lang#61451 - 0x1793d1:master, r=Centril
Browse files Browse the repository at this point in the history
Fix missing semicolon in doc

A semicolon is missing in the examples of compile_error.
Macros that expand to items must be delimited with braces or followed by a semicolon.
  • Loading branch information
Centril authored Jun 2, 2019
2 parents 247e0a6 + b3fdde4 commit d70f288
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/libstd/macros.rs
Original file line number Diff line number Diff line change
Expand Up @@ -405,7 +405,7 @@ mod builtin {
///
/// ```compile_fail
/// #[cfg(not(any(feature = "foo", feature = "bar")))]
/// compile_error!("Either feature \"foo\" or \"bar\" must be enabled for this crate.")
/// compile_error!("Either feature \"foo\" or \"bar\" must be enabled for this crate.");
/// ```
///
/// [`panic!`]: ../std/macro.panic.html
Expand Down

0 comments on commit d70f288

Please sign in to comment.