There was an error while loading. Please reload this page.
Encoder::encode
1 parent 7f63ffb commit 3379622Copy full SHA for 3379622
1 file changed
base64ct/src/encoder.rs
@@ -74,7 +74,7 @@ impl<'o, E: Encoding> Encoder<'o, E> {
74
/// Encode the provided buffer as Base64, writing it to the output buffer.
75
///
76
/// # Returns
77
- /// - `Ok(bytes)` if the expected amount of data was read
+ /// - `Ok(())` if the expected amount of data was read
78
/// - `Err(Error::InvalidLength)` if there is insufficient space in the output buffer
79
pub fn encode(&mut self, mut input: &[u8]) -> Result<(), Error> {
80
// If there's data in the block buffer, fill it
0 commit comments