diff options
| author | Mazdak Farrokhzad <twingoow@gmail.com> | 2019-06-02 15:23:52 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2019-06-02 15:23:52 +0200 |
| commit | d70f2881fc8abfc4e6e72e1f305c755eb2618ec2 (patch) | |
| tree | 63dc437c6a6cf9b13d053eaa898808eda04a83e7 /src/libstd | |
| parent | 247e0a688ddd4c7d8d45f1be5d159d5e0d9dde2c (diff) | |
| parent | b3fdde431b18d237b9e4aa00071eff2f87b81648 (diff) | |
| download | rust-d70f2881fc8abfc4e6e72e1f305c755eb2618ec2.tar.gz rust-d70f2881fc8abfc4e6e72e1f305c755eb2618ec2.zip | |
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.
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 |
