Update examples on site index and overview.

This commit is contained in:
Sergio Benitez 2021-04-13 21:59:11 -07:00
parent 4f3511786c
commit c49585bb39
3 changed files with 14 additions and 14 deletions

View File

@ -84,17 +84,17 @@ run`. You should see the following:
```sh
> cargo run
🔧 Configured for debug.
=> address: 127.0.0.1
=> port: 8000
=> workers: 64
=> log level: normal
=> secret key: [zero]
=> limits: forms = 32KiB
=> cli colors: true
=> keep-alive: 5s
=> tls: disabled
🛰 Mounting /:
=> GET / (index)
>> address: 127.0.0.1
>> port: 8000
>> workers: [..]
>> keep-alive: 5s
>> limits: [..]
>> tls: disabled
>> temp dir: /tmp
>> log level: normal
>> cli colors: true
🛰 Routes:
>> (index) GET /
🚀 Rocket has launched from http://127.0.0.1:8000
```

View File

@ -4,7 +4,7 @@
[release]
version = "0.5.0-dev"
date = "Oct 21, 2020"
date = "Apr 13, 2021"
###############################################################################
# Top features: displayed in the header under the introductory text.
@ -55,7 +55,7 @@ code = '''
}
#[launch]
fn rocket() -> rocket::Rocket {
fn rocket() -> _ {
rocket::build().mount("/", routes![hello])
}
'''

View File

@ -142,7 +142,7 @@ function, look like:
```rust
#[launch]
fn rocket() -> Rocket {
fn rocket() -> _ {
rocket::build().mount("/base", routes![index, another])
}
```