Skip to content

Commit b3fdde4

Browse files
authored
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.
1 parent 538e17a commit b3fdde4

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)