Skip to content

Commit

Permalink
Add import.
Browse files Browse the repository at this point in the history
  • Loading branch information
LukeMathWalker committed Jan 7, 2024
1 parent 31e8b69 commit aba3566
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions doc_examples/quickstart/06-extract.snap
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
```rust title="demo/src/user_agent.rs" hl_lines="4 5 6 7 8 9 10 11 12 13"
use pavex::http::header::USER_AGENT;
use pavex::request::RequestHead;
// [...]
impl UserAgent {
pub fn extract(request_head: &RequestHead) -> Self {
Expand Down
4 changes: 2 additions & 2 deletions doc_examples/quickstart/tutorial.yml
Original file line number Diff line number Diff line change
Expand Up @@ -96,8 +96,8 @@ steps:
snippets:
- name: "extract"
source_path: "demo/src/user_agent.rs"
ranges: [ "0..1", "10..23" ]
hl_lines: [ 4, 5, 6, 7, 8, 9, 10, 11, 12, 13 ]
ranges: [ "0..2", "10..23" ]
hl_lines: [ 5, 6, 7, 8, 9, 10, 11, 12, 13, 14 ]
- name: "register"
source_path: "demo/src/blueprint.rs"
ranges: [ "8..9", "12..16", "22..23" ]
Expand Down

0 comments on commit aba3566

Please sign in to comment.