mirror of
https://github.com/vlang/v.git
synced 2023-08-10 21:13:21 +03:00
doc: fix minor typo
This commit is contained in:
parent
d697b2848a
commit
1a990407c7
@ -354,7 +354,7 @@ fn main() {
|
|||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
|
||||||
Modules can be imported using keyword `import`. When using types, functions, and constants from other modules, the full path must be specified. In the example above, `name := input()` wouldn't work. That means that it's always clear from which module a function is called
|
Modules can be imported using keyword `import`. When using types, functions, and constants from other modules, the full path must be specified. In the example above, `name := input()` wouldn't work. That means that it's always clear from which module a function is called.
|
||||||
|
|
||||||
## Arrays
|
## Arrays
|
||||||
|
|
||||||
@ -667,7 +667,7 @@ struct Foo {
|
|||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
|
||||||
All struct fields are zeroed by default during the creation of the struct. Array and map fields are allocated.
|
All struct fields are zeroed by default during the creation of the struct. Array and map fields are allocated.
|
||||||
|
|
||||||
It's also possible to define custom default values.
|
It's also possible to define custom default values.
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user