mirror of
https://github.com/vlang/v.git
synced 2023-08-10 21:13:21 +03:00
vdoc: trim trailing / (#6856)
This commit is contained in:
parent
fdc0cd4c03
commit
ba2c5f68fc
@ -1031,7 +1031,7 @@ fn main() {
|
|||||||
}
|
}
|
||||||
is_path := cfg.input_path.ends_with('.v') || cfg.input_path.split(os.path_separator).len >
|
is_path := cfg.input_path.ends_with('.v') || cfg.input_path.split(os.path_separator).len >
|
||||||
1 || cfg.input_path == '.'
|
1 || cfg.input_path == '.'
|
||||||
if cfg.input_path == 'vlib' {
|
if cfg.input_path.trim_right('/') == 'vlib' {
|
||||||
cfg.is_vlib = true
|
cfg.is_vlib = true
|
||||||
cfg.is_multi = true
|
cfg.is_multi = true
|
||||||
cfg.input_path = os.join_path(vexe_path, 'vlib')
|
cfg.input_path = os.join_path(vexe_path, 'vlib')
|
||||||
|
Loading…
Reference in New Issue
Block a user