1
0
mirror of https://github.com/vlang/v.git synced 2023-08-10 21:13:21 +03:00

fmt: remove space in front of ? and ! (#14366)

This commit is contained in:
Daniel Däschle
2022-05-13 05:56:21 +02:00
committed by GitHub
parent df029da942
commit d679146a80
324 changed files with 1865 additions and 1879 deletions

View File

@@ -556,7 +556,7 @@ pub fn (b []u8) bytestr() string {
// it will produce an error if there are more than
// four bytes in the array.
pub fn (b []u8) byterune() ?rune {
r := b.utf8_to_utf32() ?
r := b.utf8_to_utf32()?
return rune(r)
}

View File

@@ -40,7 +40,7 @@ fn JS.moveBy(int, int)
fn JS.moveTo(int, int)
fn JS.msWriteProfilerMark(string)
// fn JS.open(string, string, string, bool) ?Window
// fn JS.open(string, string, string, bool)?Window
// fn JS.postMessage(any, string, []Transferable)
fn JS.print()
fn JS.prompt(string, string) ?string

View File

@@ -145,15 +145,15 @@ fn test_ranges() {
}
fn ranges_propagate_first(s string) ?string {
return s[10..] ?
return s[10..]?
}
fn ranges_propagate_last(s string) ?string {
return s[..20] ?
return s[..20]?
}
fn ranges_propagate_both(s string) ?string {
return s[1..20] ?
return s[1..20]?
}
fn test_split_nth() {