Skip to content

Commit

Permalink
Fix example in README
Browse files Browse the repository at this point in the history
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]`.
  • Loading branch information
hsiW authored Apr 15, 2017
1 parent f0d1157 commit d4fc8b6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit d4fc8b6

Please sign in to comment.