vfmt: change all '$expr' to '${expr}' (#16428)

This commit is contained in:
yuyi 2022-11-15 21:53:13 +08:00 committed by GitHub
parent 56239b4a23
commit 017ace6ea7
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
859 changed files with 7156 additions and 7135 deletions

View file

@ -19,7 +19,7 @@ fn main() {
listener.close() or {}
}
addr := listener.addr()!
eprintln('Listening on $addr')
eprintln('Listening on ${addr}')
eprintln('Type `stop` to stop the server')
// create file descriptor notifier
@ -40,10 +40,10 @@ fn main() {
if _ := notifier.add(conn.sock.handle, .read | .peer_hangup) {
eprintln('connected')
} else {
eprintln('error adding to notifier: $err')
eprintln('error adding to notifier: ${err}')
}
} else {
eprintln('unable to accept: $err')
eprintln('unable to accept: ${err}')
}
}
0 {
@ -60,7 +60,7 @@ fn main() {
if _ := notifier.remove(event.fd) {
eprintln('remote disconnected')
} else {
eprintln('error removing from notifier: $err')
eprintln('error removing from notifier: ${err}')
}
} else {
s, _ := os.fd_read(event.fd, 10)