mirror of
https://github.com/vlang/v.git
synced 2025-09-13 14:32:26 +03:00
v: change old attr syntax mention to new one in comments too (#21860)
This commit is contained in:
parent
5c2d64a235
commit
769e9147c3
43 changed files with 92 additions and 92 deletions
|
@ -332,7 +332,7 @@ pub fn (a Any) reflect[T]() T {
|
|||
mut toml_field_name := field.name
|
||||
// Remapping of field names, for example:
|
||||
// TOML: 'assert = "ok"'
|
||||
// V: User { asrt string [toml: 'assert'] }
|
||||
// V: User { asrt string @[toml: 'assert'] }
|
||||
// User.asrt == 'ok'
|
||||
for attr in field.attrs {
|
||||
if attr.starts_with('toml:') {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue