From 5606b8e69369a8bb2363a8449fdd67f90b0ace07 Mon Sep 17 00:00:00 2001 From: Sergio Benitez Date: Mon, 14 Aug 2023 14:11:08 -0400 Subject: [PATCH] Clarify when 'UriDisplay' can be derived. Resolves #2595. --- core/http/src/uri/fmt/uri_display.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/core/http/src/uri/fmt/uri_display.rs b/core/http/src/uri/fmt/uri_display.rs index fcaebf02..fb8902ff 100644 --- a/core/http/src/uri/fmt/uri_display.rs +++ b/core/http/src/uri/fmt/uri_display.rs @@ -198,8 +198,8 @@ use crate::uri::fmt::{Part, Path, Query, Formatter}; /// assert_eq!(uri_string, "Bob%20Smith"); /// ``` /// -/// As long as every field in the structure (or enum) implements `UriDisplay`, -/// the trait can be derived. The implementation calls +/// As long as every field in the structure (or enum for [`UriDisplay`]) +/// implements `UriDisplay`, the trait can be derived. The implementation calls /// [`Formatter::write_named_value()`] for every named field and /// [`Formatter::write_value()`] for every unnamed field. See the /// [`UriDisplay`] and [`UriDisplay`] derive documentation for full