Fix doctest
This commit is contained in:
parent
ade95a54d5
commit
ef9c8dc56b
1 changed files with 5 additions and 1 deletions
|
@ -534,7 +534,11 @@ fn json_pointer_mut<'a>(
|
|||
/// #[derive(Debug, Clone)]
|
||||
/// struct MyVisitor;
|
||||
///
|
||||
/// impl Visitor for MyVisitor { }
|
||||
/// impl Visitor for MyVisitor {
|
||||
/// fn visit_schema(&mut self, schema: &mut schemars::Schema) {
|
||||
/// todo!()
|
||||
/// }
|
||||
/// }
|
||||
///
|
||||
/// let v: &dyn GenVisitor = &MyVisitor;
|
||||
/// assert!(v.as_any().is::<MyVisitor>());
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue