mirror of
https://github.com/vlang/v.git
synced 2025-09-15 18:36:37 -04:00
docs: use a [!NOTE] tag for a Note in docs.md (#21032)
This commit is contained in:
parent
eaa4edf484
commit
aded18ad46
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user