1
0
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:
Lukas Neubert 2021-03-09 17:24:21 +01:00 committed by GitHub
parent b68784aa7f
commit 4aa0504ad6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -4021,6 +4021,10 @@ function/struct/enum declaration and applies only to the following declaration.
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.
[inline]
fn inlined_function() {