Skip to content

Commit

Permalink
Update comments
Browse files Browse the repository at this point in the history
  • Loading branch information
garethj2 committed Feb 23, 2024
1 parent 4de024a commit 52a30cf
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/haystack/encoding/decode_ref_dis_factory.rs
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,10 @@ use std::sync::RwLock;
/// Enables display values to be injected into decoded Ref objects.
///
/// This is used to handle the case whereby pre-calculated display
/// names for Refs need to be utilized when encoding/decoding haystack data.
/// names for Refs need to be utilized when decoding haystack data.
///
/// Please note, the return type is a `Cow<str>`. At some point we'll make `Ref` a little
/// more flexible regarding how it holds its display data and hence its usage.
/// more flexible regarding how it holds its display data.
type RefDisFactoryFunc<'a> = Box<dyn Fn(&str, Option<&str>) -> Option<Cow<'a, str>> + Send + Sync>;

/// Holds the Ref factory function used for creating Refs.
Expand Down

0 comments on commit 52a30cf

Please sign in to comment.