diff options
| author | Mei <[email protected]> | 2017-04-14 21:53:10 -0400 |
|---|---|---|
| committer | GitHub <[email protected]> | 2017-04-14 21:53:10 -0400 |
| commit | d4fc8b6188627ae8d553cf282b1371e3de7b01f9 (patch) | |
| tree | 65fca81a14bbd5f108be0ba251e6ba5c8de2f551 /README.md | |
| parent | Default to using [0, 1] shards (diff) | |
| download | serenity-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.md | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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; |