From 7b4747ff1c593b06fb0a980620c4b996de669624 Mon Sep 17 00:00:00 2001 From: Sergio Benitez Date: Fri, 17 Aug 2018 11:14:34 -0700 Subject: [PATCH] Fix 'Segments::into_path_buf()' docstring. --- core/http/src/uri/segments.rs | 2 +- core/lib/src/request/param.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/core/http/src/uri/segments.rs b/core/http/src/uri/segments.rs index 66d37a5b..393bcfe3 100644 --- a/core/http/src/uri/segments.rs +++ b/core/http/src/uri/segments.rs @@ -51,7 +51,7 @@ impl<'a> Segments<'a> { /// * Decoded segment starts with any of: '*' /// * Decoded segment ends with any of: `:`, `>`, `<` /// * Decoded segment contains any of: `/` - /// * On Windows, decoded segment contains any of: '\' + /// * On Windows, decoded segment contains any of: `\` /// * Percent-encoding results in invalid UTF8. /// /// Additionally, if `allow_dotfiles` is `false`, an `Err` is returned if diff --git a/core/lib/src/request/param.rs b/core/lib/src/request/param.rs index cfaaec66..faa1c623 100644 --- a/core/lib/src/request/param.rs +++ b/core/lib/src/request/param.rs @@ -318,7 +318,7 @@ impl<'a> FromSegments<'a> for Segments<'a> { /// * Decoded segment starts with any of: `.` (except `..`), `*` /// * Decoded segment ends with any of: `:`, `>`, `<` /// * Decoded segment contains any of: `/` -/// * On Windows, decoded segment contains any of: '\' +/// * On Windows, decoded segment contains any of: `\` /// * Percent-encoding results in invalid UTF8. /// /// As a result of these conditions, a `PathBuf` derived via `FromSegments` is