mirror of
https://github.com/vlang/v.git
synced 2025-09-16 10:57:25 -04:00
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:
parent
7230f252c8
commit
b0fb9fb7ed
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user