Skip to content

Commit

Permalink
core: suggested doc fix (#340)
Browse files Browse the repository at this point in the history
* Suggested doc fix

* Add space, remove "as string".
  • Loading branch information
samscott89 authored and hawkw committed Sep 12, 2019
1 parent fec24bf commit 4c2b604
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion tracing-core/src/field.rs
Expand Up @@ -218,7 +218,10 @@ pub trait Value: crate::sealed::Sealed {
fn record(&self, key: &Field, visitor: &mut dyn Visit);
}

/// A `Value` which serializes as a string using `fmt::Display`.
/// A `Value` which serializes using `fmt::Display`.
///
/// Uses `record_debug` in the `Value` implementation to
/// avoid an unnecessary evaluation.
#[derive(Clone)]
pub struct DisplayValue<T: fmt::Display>(T);

Expand Down

0 comments on commit 4c2b604

Please sign in to comment.