From ae03a6984a47eb28745c3eddef708c94ed9c1e70 Mon Sep 17 00:00:00 2001 From: Marsman1996 Date: Sun, 8 Nov 2026 16:49:36 +0800 Subject: [PATCH] Clarify that non-empty wrapped output ends with the separator --- lib/src/lib.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/src/lib.rs b/lib/src/lib.rs index 009d00f..f90a44c 100644 --- a/lib/src/lib.rs +++ b/lib/src/lib.rs @@ -1180,9 +1180,10 @@ pub struct Wrap { /// spec.wrap.separator.push_str(" "); /// let base64 = spec.encoding().unwrap(); /// assert_eq!(base64.encode(b"Hey you"), "SGV5IHlv dQ== "); +/// assert_eq!(base64.encode(b""), ""); /// ``` /// -/// Note that the output always ends with the separator. +/// Note that any non-empty output always ends with the separator. /// /// ### Translate characters when decoding ///