Skip to content
This repository has been archived by the owner on Sep 10, 2024. It is now read-only.

Commit

Permalink
Fix a reference in a doc comment
Browse files Browse the repository at this point in the history
  • Loading branch information
sandhose committed Jul 5, 2024
1 parent 2336b1b commit b6c11b5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions crates/tower/src/trace_context.rs
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,8 @@ use tracing_opentelemetry::OpenTelemetrySpanExt;
pub struct HeaderInjector<'a>(pub &'a mut http::HeaderMap);

impl<'a> Injector for HeaderInjector<'a> {
/// Set a key and value in the [`HeaderMap`]. Does nothing if the key or
/// value are not valid inputs.
/// Set a key and value in the [`http::HeaderMap`]. Does nothing if the key
/// or value are not valid inputs.
fn set(&mut self, key: &str, value: String) {
if let Ok(name) = http::header::HeaderName::from_bytes(key.as_bytes()) {
if let Ok(val) = http::header::HeaderValue::from_str(&value) {
Expand Down

0 comments on commit b6c11b5

Please sign in to comment.