mirror of https://github.com/rwf2/Rocket.git
Fix spacing in 'overview' code examples.
This commit is contained in:
parent
eba469b558
commit
42df0f3679
|
@ -17,7 +17,7 @@ As an example, consider the simple route below:
|
||||||
```rust
|
```rust
|
||||||
#[get("/")]
|
#[get("/")]
|
||||||
fn index() -> &'static str {
|
fn index() -> &'static str {
|
||||||
"Hello, world!"
|
"Hello, world!"
|
||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
|
||||||
|
@ -175,7 +175,7 @@ customizable **404** error is returned.
|
||||||
```rust
|
```rust
|
||||||
#[post("/user", data = "<new_user>")]
|
#[post("/user", data = "<new_user>")]
|
||||||
fn new_user(admin: AdminUser, new_user: Form<User>) -> T {
|
fn new_user(admin: AdminUser, new_user: Form<User>) -> T {
|
||||||
...
|
...
|
||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue