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:
@@ -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 +
|
||||
|
||||
Reference in New Issue
Block a user