Use 'decl_macro' in markdown docs.

This commit is contained in:
Sergio Benitez 2017-09-14 22:07:05 -07:00
parent 245f815657
commit 33e9726151
4 changed files with 9 additions and 8 deletions

View File

@ -10,7 +10,7 @@ Rocket is web framework for Rust (nightly) with a focus on ease-of-use,
expressibility, and speed. Here's an example of a complete Rocket application:
```rust
#![feature(plugin)]
#![feature(plugin, decl_macro)]
#![plugin(rocket_codegen)]
extern crate rocket;

View File

@ -61,7 +61,7 @@ Modify `src/main.rs` so that it contains the code for the Rocket `Hello, world!`
program, reproduced below:
```rust
#![feature(plugin)]
#![feature(plugin, decl_macro)]
#![plugin(rocket_codegen)]
extern crate rocket;

View File

@ -138,7 +138,7 @@ We typically call `launch` from the `main` function. Our complete _Hello,
world!_ application thus looks like:
```rust
#![feature(plugin)]
#![feature(plugin, decl_macro)]
#![plugin(rocket_codegen)]
extern crate rocket;
@ -153,10 +153,11 @@ fn main() {
}
```
Note that we've added the `#![feature(plugin)]` and `#![plugin(rocket_codegen)]`
lines to tell Rust that we'll be using Rocket's code generation plugin. We've
also imported the `rocket` crate into our namespace via `extern crate rocket`.
Finally, we call the `launch` method in the `main` function.
Note that we've added the `#![feature(plugin, decl_macro)]` and
`#![plugin(rocket_codegen)]` lines to tell Rust that we'll be using Rocket's
code generation plugin. We've also imported the `rocket` crate into our
namespace via `extern crate rocket`. Finally, we call the `launch` method in the
`main` function.
Running the application, the console shows:

View File

@ -51,7 +51,7 @@ And finally, create a skeleton Rocket application to work off of in
`src/main.rs`:
```rust
#![feature(plugin)]
#![feature(plugin, decl_macro)]
#![plugin(rocket_codegen)]
extern crate rocket;