os: better deprecated message
parent
b0ece3a9d8
commit
b7e2af8151
|
@ -603,7 +603,7 @@ pub fn is_readable(path string) bool {
|
||||||
|
|
||||||
[deprecated]
|
[deprecated]
|
||||||
pub fn file_exists(_path string) bool {
|
pub fn file_exists(_path string) bool {
|
||||||
panic('use os.exists(path) instead of os.file_exists(path)')
|
panic('Use `os.exists` instead of `os.file_exists`')
|
||||||
}
|
}
|
||||||
|
|
||||||
// rm removes file in `path`.
|
// rm removes file in `path`.
|
||||||
|
|
Loading…
Reference in New Issue