mirror of
https://github.com/vlang/v.git
synced 2025-09-13 14:32:26 +03: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
1 changed files with 1 additions and 1 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue