From 03420c8e8d09b407814820d77a9cf8a922713b47 Mon Sep 17 00:00:00 2001 From: DarkCat09 Date: Thu, 8 Aug 2024 16:37:28 +0400 Subject: [PATCH] docs: clarify which error is returned by `Response::mime()` --- src/client/response.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/client/response.rs b/src/client/response.rs index 56f4632..a995cde 100644 --- a/src/client/response.rs +++ b/src/client/response.rs @@ -67,7 +67,8 @@ impl Response { } /// Get the response body MIME type by parsing the metadata field. - /// If you call this method on a non-2x response, you'll get a parse error. + /// If you call this method on a non-2x response, you'll get a parse error + /// ([`LibError::InvalidMime`]). /// It's strongly recommended to check the status code first /// (most handy is [`Response::is_ok()`]). pub fn mime(&self) -> Result {