mirror of
https://github.com/rwf2/Rocket.git
synced 2025-01-31 13:52:08 +00:00
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
|
||||
#[get("/")]
|
||||
fn index() -> &'static str {
|
||||
"Hello, world!"
|
||||
"Hello, world!"
|
||||
}
|
||||
```
|
||||
|
||||
@ -175,7 +175,7 @@ customizable **404** error is returned.
|
||||
```rust
|
||||
#[post("/user", data = "<new_user>")]
|
||||
fn new_user(admin: AdminUser, new_user: Form<User>) -> T {
|
||||
...
|
||||
...
|
||||
}
|
||||
```
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user