about summary refs log tree commit diff
path: root/src/libstd
diff options
context:
space:
mode:
author0x1793d1 <2362128+0x1793d1@users.noreply.github.com>2019-06-02 10:23:33 +0200
committerGitHub <noreply@github.com>2019-06-02 10:23:33 +0200
commitb3fdde431b18d237b9e4aa00071eff2f87b81648 (patch)
tree8f3cebad4422ff80583fabf0e6cd44ffd39c66e1 /src/libstd
parent538e17a3fdb517e0cd63f7c16d3292e7d710f7c7 (diff)
downloadrust-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.rs2
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