From 33e972615160b2ac0bba2a93ada38c72b6399ba3 Mon Sep 17 00:00:00 2001 From: Sergio Benitez Date: Thu, 14 Sep 2017 22:07:05 -0700 Subject: [PATCH] Use 'decl_macro' in markdown docs. --- README.md | 2 +- site/guide/getting-started.md | 2 +- site/guide/overview.md | 11 ++++++----- site/guide/pastebin.md | 2 +- 4 files changed, 9 insertions(+), 8 deletions(-) diff --git a/README.md b/README.md index 1693d8f7..dd91e4fc 100644 --- a/README.md +++ b/README.md @@ -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; diff --git a/site/guide/getting-started.md b/site/guide/getting-started.md index 57e97d62..35d90013 100644 --- a/site/guide/getting-started.md +++ b/site/guide/getting-started.md @@ -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; diff --git a/site/guide/overview.md b/site/guide/overview.md index 33c09a4c..da17ccc1 100644 --- a/site/guide/overview.md +++ b/site/guide/overview.md @@ -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: diff --git a/site/guide/pastebin.md b/site/guide/pastebin.md index 1c29de52..1711c174 100644 --- a/site/guide/pastebin.md +++ b/site/guide/pastebin.md @@ -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;