aboutsummaryrefslogtreecommitdiff
path: root/README.md
diff options
context:
space:
mode:
authorMei <[email protected]>2017-04-14 21:53:10 -0400
committerGitHub <[email protected]>2017-04-14 21:53:10 -0400
commitd4fc8b6188627ae8d553cf282b1371e3de7b01f9 (patch)
tree65fca81a14bbd5f108be0ba251e6ba5c8de2f551 /README.md
parentDefault to using [0, 1] shards (diff)
downloadserenity-d4fc8b6188627ae8d553cf282b1371e3de7b01f9.tar.xz
serenity-d4fc8b6188627ae8d553cf282b1371e3de7b01f9.zip
Fix example in README
The example in the README would fail to compile due to an error: ``` --> src/main.rs:15:1 | 15 | command!(ping(_context, message) { | ^^^^^^^ error: aborting due to previous error ``` This can be fixed by prefixing `extern crate` with `#[macro_use]`.
Diffstat (limited to 'README.md')
-rw-r--r--README.md2
1 files changed, 1 insertions, 1 deletions
diff --git a/README.md b/README.md
index a708ccc..bb7cc37 100644
--- a/README.md
+++ b/README.md
@@ -40,7 +40,7 @@ docs.
A basic ping-pong bot looks like:
```rust,no-run
-extern crate serenity;
+#[macro_use] extern crate serenity;
use serenity::client::Client;
use std::env;