Skip to content

Commit d70f288

Browse files
authored
Rollup merge of #61451 - 0x1793d1:master, r=Centril
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.
2 parents 247e0a6 + b3fdde4 commit d70f288

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/libstd/macros.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -405,7 +405,7 @@ mod builtin {
405405
///
406406
/// ```compile_fail
407407
/// #[cfg(not(any(feature = "foo", feature = "bar")))]
408-
/// compile_error!("Either feature \"foo\" or \"bar\" must be enabled for this crate.")
408+
/// compile_error!("Either feature \"foo\" or \"bar\" must be enabled for this crate.");
409409
/// ```
410410
///
411411
/// [`panic!`]: ../std/macro.panic.html

0 commit comments

Comments
 (0)