v: replace execuast => executable

pull/10285/head
Delyan Angelov 2021-05-30 20:47:38 +03:00
parent 9a5768395d
commit 955dc12523
No known key found for this signature in database
GPG Key ID: 66886C0F12D595ED
4 changed files with 4 additions and 4 deletions

View File

@ -30,7 +30,7 @@ fn (mut g Gen) gen_embed_file_init(node ast.ComptimeCall) {
g.writeln('} // \$embed_file("$node.embed_file.apath")')
}
// gen_embedded_data embeds data into the V target execuast.
// gen_embedded_data embeds data into the V target executable.
fn (mut g Gen) gen_embedded_data() {
/*
TODO implement compression.

View File

@ -76,7 +76,7 @@ pub fn (mut p Preferences) fill_with_defaults() {
// executable on Windows + the precompiled V is more
// optimized.
println('Saving the resulting V executable in `./v2`')
println('Use `v -o v cmd/v` if you want to replace current ' + 'V execuast.')
println('Use `v -o v cmd/v` if you want to replace current ' + 'V executable.')
p.out_name = 'v2'
}
}

View File

@ -625,7 +625,7 @@ pub fn parse_args(known_external_commands []string, args []string) (&Preferences
must_exist(res.path)
if !res.path.ends_with('.v') && os.is_executable(res.path) && os.is_file(res.path)
&& os.is_file(res.path + '.v') {
eprintln('It looks like you wanted to run "${res.path}.v", so we went ahead and did that since "$res.path" is an execuast.')
eprintln('It looks like you wanted to run "${res.path}.v", so we went ahead and did that since "$res.path" is an executable.')
res.path += '.v'
}
}

View File

@ -1,7 +1,7 @@
module main
// This prelude is loaded in every v program compiled with -live,
// but only for the main execuast.
// but only for the main executable.
import v.live.executable
const (