mirror of
https://github.com/vlang/v.git
synced 2023-08-10 21:13:21 +03:00
docs: mention deprecated attribute with argument (#9218)
This commit is contained in:
parent
b68784aa7f
commit
4aa0504ad6
@ -4021,6 +4021,10 @@ function/struct/enum declaration and applies only to the following declaration.
|
|||||||
fn old_function() {
|
fn old_function() {
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// It can also display a custom deprecation message
|
||||||
|
[deprecated: 'use new_function() instead']
|
||||||
|
fn legacy_function() {}
|
||||||
|
|
||||||
// This function's calls will be inlined.
|
// This function's calls will be inlined.
|
||||||
[inline]
|
[inline]
|
||||||
fn inlined_function() {
|
fn inlined_function() {
|
||||||
|
Loading…
Reference in New Issue
Block a user