all: fix typos (#21089)

This commit is contained in:
Turiiya 2024-03-25 11:18:27 +01:00 committed by GitHub
parent 9ad84ddc21
commit f77bb32044
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
193 changed files with 403 additions and 402 deletions

View file

@ -239,7 +239,7 @@ pub fn cp(src string, dst string) ! {
return error_with_code('cp (permission): failed to write to ${dst} (fp_to: ${fp_to})',
int(fp_to))
}
// TODO use defer{} to close files in case of error or return.
// TODO: use defer{} to close files in case of error or return.
// Currently there is a C-Error when building.
mut buf := [1024]u8{}
mut count := 0
@ -351,7 +351,7 @@ fn vpclose(f voidptr) int {
// system works like `exec`, but only returns a return code.
pub fn system(cmd string) int {
// if cmd.contains(';') || cmd.contains('&&') || cmd.contains('||') || cmd.contains('\n') {
// TODO remove panic
// TODO: remove panic
// panic(';, &&, || and \\n are not allowed in shell commands')
// }
mut ret := 0