Skip to content

Commit

Permalink
fix url doc-test
Browse files Browse the repository at this point in the history
  • Loading branch information
asmello committed Mar 31, 2024
1 parent cac285e commit 2878e62
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/pointer.rs
Original file line number Diff line number Diff line change
Expand Up @@ -685,9 +685,9 @@ impl<'a> IntoIterator for &'a Pointer {
doc = r##"
```rust
use jsonptr::PointerBuf;
let expected = PointerBuf::new(&["foo", "bar"]);
let expected = PointerBuf::from_tokens(&["foo", "bar"]);
let url = url::Url::parse("https://example.com#/foo/bar").unwrap();
assert_eq!(expected, Pointer::try_from(url).unwrap())
assert_eq!(expected, PointerBuf::try_from(url).unwrap())
```
"##
)]
Expand Down

0 comments on commit 2878e62

Please sign in to comment.