mirror of
https://github.com/actix/actix-website
synced 2025-01-22 16:15:56 +01:00
Update errors.md
This commit is contained in:
parent
a0971bfa5c
commit
df4ab1b7cb
@ -36,9 +36,10 @@ converted into an `HttpInternalServerError`:
|
||||
|
||||
```rust
|
||||
use std::io;
|
||||
use actix_files::NamedFile;
|
||||
|
||||
fn index(_req: HttpRequest) -> io::Result<fs::NamedFile> {
|
||||
Ok(fs::NamedFile::open("static/index.html")?)
|
||||
fn index(_req: HttpRequest) -> io::Result<NamedFile> {
|
||||
Ok(NamedFile::open("static/index.html")?)
|
||||
}
|
||||
```
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user