Skip to content

Commit

Permalink
crypto.md5: change the Digest.write return type, from ?int to !int (
Browse files Browse the repository at this point in the history
#19311)

Co-authored-by: Subhomoy Haldar <shaldar@componentsense.com>
  • Loading branch information
hungrybluedev and Subhomoy Haldar committed Sep 9, 2023
1 parent 7230f25 commit b0fb9fb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion vlib/crypto/md5/md5.v
Expand Up @@ -66,7 +66,7 @@ pub fn new() &Digest {
}

// write writes the contents of `p_` to the internal hash representation.
pub fn (mut d Digest) write(p_ []u8) ?int {
pub fn (mut d Digest) write(p_ []u8) !int {
unsafe {
mut p := p_
nn := p.len
Expand Down

0 comments on commit b0fb9fb

Please sign in to comment.