diff options
| author | 0x1793d1 <2362128+0x1793d1@users.noreply.github.com> | 2019-06-02 10:23:33 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2019-06-02 10:23:33 +0200 |
| commit | b3fdde431b18d237b9e4aa00071eff2f87b81648 (patch) | |
| tree | 8f3cebad4422ff80583fabf0e6cd44ffd39c66e1 /src/libstd | |
| parent | 538e17a3fdb517e0cd63f7c16d3292e7d710f7c7 (diff) | |
| download | rust-b3fdde431b18d237b9e4aa00071eff2f87b81648.tar.gz rust-b3fdde431b18d237b9e4aa00071eff2f87b81648.zip | |
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.
Diffstat (limited to 'src/libstd')
| -rw-r--r-- | src/libstd/macros.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libstd/macros.rs b/src/libstd/macros.rs index 9af7bba97aa..ef7179f0b6f 100644 --- a/src/libstd/macros.rs +++ b/src/libstd/macros.rs @@ -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 |
