1
0
mirror of https://github.com/vlang/v.git synced 2023-08-10 21:13:21 +03:00

toml: correct documentation (#11976)

This commit is contained in:
Larpon
2021-09-26 06:34:47 +02:00
committed by GitHub
parent 863dd0b23e
commit da47638f42
6 changed files with 56 additions and 17 deletions

View File

@@ -11,6 +11,8 @@ pub:
file_path string // '/path/to/file.toml'
}
// validate returns an optional error if more than one of the fields
// in `Config` has a non-default value (empty string).
pub fn (c Config) validate() ? {
if c.file_path != '' && c.text != '' {
error(@MOD + '.' + @FN +