Fix an error in the documentation strings
This file explicitly turns on this warning meaning that it can't be
overridden by command line lint arguments. The rustdoc from version
1.66.1 will fail without this patch.
Test: m rustdoc
Bug: 263153841
Change-Id: Idcf3779cbd46300691232302bba10c46143a2dbc
(cherry picked from commit ee071cee30d09d169c4bd88d8bd71fc104b57071)
Merged-In: Idcf3779cbd46300691232302bba10c46143a2dbc
diff --git a/patches/doc-string-fix.patch b/patches/doc-string-fix.patch
new file mode 100644
index 0000000..15370bf
--- /dev/null
+++ b/patches/doc-string-fix.patch
@@ -0,0 +1,41 @@
+From 27fc4ecc69aab7b31e23aefbeed10b252b176d5a Mon Sep 17 00:00:00 2001
+From: Chris Wailes <[email protected]>
+Date: Thu, 9 Feb 2023 23:15:26 -0800
+Subject: [PATCH] Fix an error in the documentation strings
+
+This file explicitly turns on this warning meaning that it can't be
+overridden by command line lint arguments. The rustdoc from version
+1.66.1 will fail without this patch.
+
+Test: m rustdoc
+Bug: 263153841
+Change-Id: Idcf3779cbd46300691232302bba10c46143a2dbc
+---
+ src/decode.rs | 4 ++--
+ 1 file changed, 2 insertions(+), 2 deletions(-)
+
+diff --git a/src/decode.rs b/src/decode.rs
+index e349240..3f627c7 100644
+--- a/src/decode.rs
++++ b/src/decode.rs
+@@ -71,7 +71,7 @@ impl error::Error for DecodeError {
+ }
+
+ ///Decode from string reference as octets.
+-///Returns a Result containing a Vec<u8>.
++///Returns a Result containing a `Vec<u8>`.
+ ///Convenience `decode_config(input, base64::STANDARD);`.
+ ///
+ ///# Example
+@@ -90,7 +90,7 @@ pub fn decode<T: AsRef<[u8]>>(input: T) -> Result<Vec<u8>, DecodeError> {
+ }
+
+ ///Decode from string reference as octets.
+-///Returns a Result containing a Vec<u8>.
++///Returns a Result containing a `Vec<u8>`.
+ ///
+ ///# Example
+ ///
+--
+2.39.1.581.gbfd45094c4-goog
+
diff --git a/src/decode.rs b/src/decode.rs
index e349240..3f627c7 100644
--- a/src/decode.rs
+++ b/src/decode.rs
@@ -71,7 +71,7 @@
}
///Decode from string reference as octets.
-///Returns a Result containing a Vec<u8>.
+///Returns a Result containing a `Vec<u8>`.
///Convenience `decode_config(input, base64::STANDARD);`.
///
///# Example
@@ -90,7 +90,7 @@
}
///Decode from string reference as octets.
-///Returns a Result containing a Vec<u8>.
+///Returns a Result containing a `Vec<u8>`.
///
///# Example
///