mirror of
https://github.com/vlang/v.git
synced 2025-09-13 14:32:26 +03:00
all: update attributes to use new syntax
This commit is contained in:
parent
dd81cb98c6
commit
757929392e
739 changed files with 2982 additions and 2982 deletions
|
@ -34,7 +34,7 @@ mut:
|
|||
}
|
||||
|
||||
// free the resources taken by the Digest `d`
|
||||
[unsafe]
|
||||
@[unsafe]
|
||||
pub fn (mut d Digest) free() {
|
||||
$if prealloc {
|
||||
return
|
||||
|
@ -149,8 +149,8 @@ fn (mut d Digest) checksum_internal() []u8 {
|
|||
|
||||
// checksum returns the byte checksum of the `Digest`,
|
||||
// it is an internal method and is not recommended because its results are not idempotent.
|
||||
[deprecated: 'checksum() will be changed to a private method, use sum() instead']
|
||||
[deprecated_after: '2024-04-30']
|
||||
@[deprecated: 'checksum() will be changed to a private method, use sum() instead']
|
||||
@[deprecated_after: '2024-04-30']
|
||||
pub fn (mut d Digest) checksum() []u8 {
|
||||
return d.checksum_internal()
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue