From 66696e1329e223b1a7bd9244cf2278d2333afc2a Mon Sep 17 00:00:00 2001 From: Alexander Medvednikov Date: Tue, 9 Jun 2020 22:49:40 +0200 Subject: [PATCH] doc: [inline] --- doc/docs.md | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/doc/docs.md b/doc/docs.md index df80e2f5a4..3e158c81f7 100644 --- a/doc/docs.md +++ b/doc/docs.md @@ -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]