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:
@@ -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)
|
||||
}
|
||||
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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() {
|
||||
|
||||
Reference in New Issue
Block a user