os: fix deprecated os.dir to work as advertised

pull/3250/head
Nicolas Sauzede 2019-12-28 08:49:27 +01:00 committed by Alexander Medvednikov
parent a214778b74
commit 4925aa594b
1 changed files with 1 additions and 1 deletions

View File

@ -616,7 +616,7 @@ pub fn ext(path string) string {
[deprecated]
pub fn dir(path string) string {
println('Use filepath.dir')
return filepath.ext(path)
return filepath.dir(path)
}
[deprecated]