mirror of
https://github.com/vlang/v.git
synced 2025-09-13 14:32:26 +03:00
fmt: remove space in front of ? and ! (#14366)
This commit is contained in:
parent
df029da942
commit
d679146a80
324 changed files with 1865 additions and 1879 deletions
|
@ -14,21 +14,21 @@ fn main() {
|
|||
}
|
||||
|
||||
// create TCP listener
|
||||
mut listener := net.listen_tcp(.ip, 'localhost:9001') ?
|
||||
mut listener := net.listen_tcp(.ip, 'localhost:9001')?
|
||||
defer {
|
||||
listener.close() or {}
|
||||
}
|
||||
addr := listener.addr() ?
|
||||
addr := listener.addr()?
|
||||
eprintln('Listening on $addr')
|
||||
eprintln('Type `stop` to stop the server')
|
||||
|
||||
// create file descriptor notifier
|
||||
mut notifier := notify.new() ?
|
||||
mut notifier := notify.new()?
|
||||
defer {
|
||||
notifier.close() or {}
|
||||
}
|
||||
notifier.add(os.stdin().fd, .read) ?
|
||||
notifier.add(listener.sock.handle, .read) ?
|
||||
notifier.add(os.stdin().fd, .read)?
|
||||
notifier.add(listener.sock.handle, .read)?
|
||||
|
||||
for {
|
||||
for event in notifier.wait(time.infinite) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue