mirror of https://github.com/rwf2/Rocket.git
Update examples on site index and overview.
This commit is contained in:
parent
4f3511786c
commit
c49585bb39
|
@ -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
|
||||
```
|
||||
|
||||
|
|
|
@ -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])
|
||||
}
|
||||
'''
|
||||
|
|
|
@ -142,7 +142,7 @@ function, look like:
|
|||
|
||||
```rust
|
||||
#[launch]
|
||||
fn rocket() -> Rocket {
|
||||
fn rocket() -> _ {
|
||||
rocket::build().mount("/base", routes![index, another])
|
||||
}
|
||||
```
|
||||
|
|
Loading…
Reference in New Issue