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

all: fix dependant->dependent typos, cleanup comments

This commit is contained in:
Delyan Angelov
2022-12-02 12:51:00 +02:00
parent 675c362f57
commit e419faf746
11 changed files with 15 additions and 26 deletions

View File

@@ -356,8 +356,8 @@ fn auto_complete(args []string) {
exit(0)
}
// append_separator_if_dir is a utility function.that returns the input `path` appended an
// OS dependant path separator if the `path` is a directory.
// append_separator_if_dir returns the input `path` with an appended
// `/` or `\`, depending on the platform, when `path` is a directory.
fn append_separator_if_dir(path string) string {
if os.is_dir(path) && !path.ends_with(os.path_separator) {
return path + os.path_separator