mirror of
https://github.com/vlang/v.git
synced 2023-08-10 21:13:21 +03:00
@@ -215,7 +215,7 @@ pub fn (mut f File) writeln(s string) ?int {
|
||||
if x < 0 {
|
||||
return error('could not add newline')
|
||||
}
|
||||
return (written + 1)
|
||||
return written + 1
|
||||
}
|
||||
|
||||
// write_string writes the string `s` into the file
|
||||
|
@@ -426,7 +426,7 @@ pub fn is_executable(path string) bool {
|
||||
// 04 Read-only
|
||||
// 06 Read and write
|
||||
p := real_path(path)
|
||||
return (exists(p) && p.ends_with('.exe'))
|
||||
return exists(p) && p.ends_with('.exe')
|
||||
}
|
||||
$if solaris {
|
||||
statbuf := C.stat{}
|
||||
|
Reference in New Issue
Block a user