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.
This commit is contained in:
parent
538e17a3fd
commit
b3fdde431b
1 changed files with 1 additions and 1 deletions
|
@ -405,7 +405,7 @@ mod builtin {
|
||||||
///
|
///
|
||||||
/// ```compile_fail
|
/// ```compile_fail
|
||||||
/// #[cfg(not(any(feature = "foo", feature = "bar")))]
|
/// #[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
|
/// [`panic!`]: ../std/macro.panic.html
|
||||||
|
|
Loading…
Reference in a new issue