Skip to content

Commit bf7e835

Browse files
committed
adjust example
1 parent bdb77c8 commit bf7e835

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

opentelemetry/src/baggage.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -334,7 +334,7 @@ pub trait BaggageExt {
334334
///
335335
/// // Passing an iterator
336336
/// let cx = Context::map_current(|cx| {
337-
/// cx.with_baggage(vec![KeyValue::new("my-name", "my-value")])
337+
/// cx.with_baggage([KeyValue::new("my-name", "my-value")])
338338
/// });
339339
///
340340
/// assert_eq!(

0 commit comments

Comments
 (0)