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

os: is_abs => is_abs_path

This commit is contained in:
yuyi
2020-03-10 23:09:37 +08:00
committed by GitHub
parent 324a48bc64
commit 8ff86dbee6
3 changed files with 7 additions and 7 deletions

View File

@ -950,8 +950,8 @@ pub fn realpath(fpath string) string {
return string(fullpath)
}
// is_abs returns true if `path` is absolute.
pub fn is_abs(path string) bool {
// is_abs_path returns true if `path` is absolute.
pub fn is_abs_path(path string) bool {
$if windows {
return path[0] == `/` || // incase we're in MingGW bash
(path[0].is_letter() && path[1] == `:`)