Rocket

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs | README

commit 0ac6c18deb3bbf4055b1e7b9d68178c6c029b12b
parent 1c496b3424155745832bbb335be386b859235ffb
Author: Sergio Benitez <sb@sergio.bz>
Date:   Thu,  8 Nov 2018 09:26:42 -0800

Fix 'rocket::custom()' guide documentation.

Diffstat:
Msite/guide/9-configuration.md | 11+++++++----
1 file changed, 7 insertions(+), 4 deletions(-)

diff --git a/site/guide/9-configuration.md b/site/guide/9-configuration.md @@ -254,12 +254,15 @@ let config = Config::build(Environment::Staging) .port(9234) .finalize()?; -let app = rocket::custom(config, false); +rocket::custom(config) + .mount(..) + .launch(); ``` -Configuration via `rocket::custom()` replaces all configuration from -`Rocket.toml` or environment variables. In other words, using `rocket::custom()` -results in `Rocket.toml` and environment variables being ignored. +Configuration via `rocket::custom()` replaces calls to `rocket::ignite()` and +all configuration from `Rocket.toml` or environment variables. In other words, +using `rocket::custom()` results in `Rocket.toml` and environment variables +being ignored. [`rocket::custom()`]: @api/rocket/fn.custom.html [`ConfigBuilder`]: @api/rocket/config/struct.ConfigBuilder.html