Skip to content

Commit 49bf37b

Browse files
committed
Fix issue with doc example
1 parent f8398fa commit 49bf37b

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

zenoh/src/api/timestamp_stack.rs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -245,6 +245,8 @@ impl TimestampInstrumentation {
245245
/// ```
246246
/// use zenoh::timestamp_stack::InstrumentationTimestamp;
247247
///
248+
/// // InstrumentationTimestamp is usually constructed automatically.
249+
/// let ts = InstrumentationTimestamp::Custom(b"my_format".to_vec());
248250
/// // Pattern match to handle both variants:
249251
/// match &ts {
250252
/// InstrumentationTimestamp::UHLC(uhlc_ts) => println!("UHLC: {:?}", uhlc_ts),
@@ -470,7 +472,7 @@ impl TryFrom<&zenoh_protocol::network::timestamp_stack::TimestampStack> for Time
470472
Ok(p) => p,
471473
Err(_) => {
472474
// FIXME: find a way to hold unknown inteception points
473-
// (required for Reply to inherit the full stack of its query)
475+
// (required for forward-compatibility)
474476
tracing::warn!("
475477
Skipping instrumentation measurement with unknown or malformed instrumentation flags '{:b}'",
476478
record.flags

0 commit comments

Comments
 (0)