Skip to content

Commit b1d81ba

Browse files
authored
rename finalize_box to finalize_boxed (#182)
1 parent 294e992 commit b1d81ba

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

digest/src/lib.rs

+3-3
Original file line numberDiff line numberDiff line change
@@ -163,7 +163,7 @@ pub trait VariableOutput: core::marker::Sized {
163163
/// they have size of 2 and 3 words respectively.
164164
#[cfg(feature = "alloc")]
165165
#[cfg_attr(docsrs, doc(cfg(feature = "alloc")))]
166-
fn finalize_box(self) -> Box<[u8]> {
166+
fn finalize_boxed(self) -> Box<[u8]> {
167167
let n = self.output_size();
168168
let mut buf = vec![0u8; n].into_boxed_slice();
169169
self.finalize_variable(|res| buf.copy_from_slice(res));
@@ -185,7 +185,7 @@ pub trait XofReader {
185185
/// they have size of 2 and 3 words respectively.
186186
#[cfg(feature = "alloc")]
187187
#[cfg_attr(docsrs, doc(cfg(feature = "alloc")))]
188-
fn read_box(&mut self, n: usize) -> Box<[u8]> {
188+
fn read_boxed(&mut self, n: usize) -> Box<[u8]> {
189189
let mut buf = vec![0u8; n].into_boxed_slice();
190190
self.read(&mut buf);
191191
buf
@@ -206,7 +206,7 @@ pub trait ExtendableOutput: core::marker::Sized {
206206
/// they have size of 2 and 3 words respectively.
207207
#[cfg(feature = "alloc")]
208208
#[cfg_attr(docsrs, doc(cfg(feature = "alloc")))]
209-
fn finalize_box(self, n: usize) -> Box<[u8]> {
209+
fn finalize_boxed(self, n: usize) -> Box<[u8]> {
210210
let mut buf = vec![0u8; n].into_boxed_slice();
211211
self.finalize_xof().read(&mut buf);
212212
buf

0 commit comments

Comments
 (0)