mirror of
https://github.com/vlang/v.git
synced 2023-08-10 21:13:21 +03:00
crypto.sha256: add missing documentation of sum (#12716)
This commit is contained in:
parent
81a1490e31
commit
4b21d3e364
@ -124,6 +124,7 @@ fn (mut d Digest) write(p_ []byte) ?int {
|
||||
}
|
||||
}
|
||||
|
||||
// sum returns the SHA256 or SHA224 checksum of digest with the data.
|
||||
pub fn (d &Digest) sum(b_in []byte) []byte {
|
||||
// Make a copy of d so that caller can keep writing and summing.
|
||||
mut d0 := *d
|
||||
|
Loading…
Reference in New Issue
Block a user