doc: [inline]

pull/5311/head
Alexander Medvednikov 2020-06-09 22:49:40 +02:00 committed by GitHub
parent 3f6c3edd19
commit 66696e1329
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 7 additions and 1 deletions

View File

@ -1940,10 +1940,16 @@ On Unix-like platforms, the file can be run directly after making it executable
## Attributes
V has several attributes that modify the behavior of functions and structs.
```v
// Calling this function will result in a deprecation warning
[deprecated]
fn foo() {}
fn old_function() {}
// This function's calls will be inlined.
[inline]
fn inlined_function() {}
// The following struct can only be used as a reference (`&Window`) and allocated on the heap.
[ref_only]