docs: use a [!NOTE] tag for a Note in docs.md (#21032)

This commit is contained in:
Nikita Goncarenko 2024-03-15 10:21:00 +01:00 committed by GitHub
parent eaa4edf484
commit aded18ad46
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -2469,6 +2469,7 @@ new_button(ButtonConfig{text:'Click me', width:100})
This only works for functions that take a struct for the last argument.
> [!NOTE]
> Note the `[params]` tag is used to tell V, that the trailing struct parameter
> can be omitted *entirely*, so that you can write `button := new_button()`.
> Without it, you have to specify *at least* one of the field names, even if it