Skip to content

Commit

Permalink
Fix 'PasteId' 'use' in pastebin tutorial.
Browse files Browse the repository at this point in the history
  • Loading branch information
SergioBenitez committed May 8, 2022
1 parent fccb575 commit 78aad3a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion examples/pastebin/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ use rocket::http::uri::Absolute;
use rocket::response::content::RawText;
use rocket::tokio::fs::{self, File};

use crate::paste_id::PasteId;
use paste_id::PasteId;

// In a real application, these would be retrieved dynamically from a config.
const HOST: Absolute<'static> = uri!("http://localhost:8000");
Expand Down
2 changes: 1 addition & 1 deletion site/guide/10-pastebin.md
Original file line number Diff line number Diff line change
Expand Up @@ -214,7 +214,7 @@ Before we continue, we'll need to make a few design decisions.
mod paste_id;
# */ mod paste_id { pub struct PasteId; }

use crate::paste_id::PasteId;
use paste_id::PasteId;
```

You'll notice that our code to generate paste IDs uses the `rand` crate, so
Expand Down

0 comments on commit 78aad3a

Please sign in to comment.