Skip to content

Commit 30d90ba

Browse files
matkladhawkw
andcommitted
core: fix missing dyn in Visit docs example (#1595)
Co-authored-by: Eliza Weisman <eliza@buoyant.io>
1 parent 4f9987d commit 30d90ba

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tracing-core/src/field.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,7 @@ pub struct Iter {
118118
/// }
119119
///
120120
/// impl<'a> Visit for StringVisitor<'a> {
121-
/// fn record_debug(&mut self, field: &Field, value: &fmt::Debug) {
121+
/// fn record_debug(&mut self, field: &Field, value: &dyn fmt::Debug) {
122122
/// write!(self.string, "{} = {:?}; ", field.name(), value).unwrap();
123123
/// }
124124
/// }

0 commit comments

Comments
 (0)