crypto.md5: change the Digest.write return type, from ?int to !int (#19311)

Co-authored-by: Subhomoy Haldar <shaldar@componentsense.com>
This commit is contained in:
Subhomoy Haldar 2023-09-09 11:34:47 +01:00 committed by GitHub
parent 7230f252c8
commit b0fb9fb7ed
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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