mirror of
https://github.com/vlang/v.git
synced 2025-09-13 14:32:26 +03:00
examples: fix optional in string interpolation and format error (#14079)
This commit is contained in:
parent
e16ce3af88
commit
a318a2e09e
3 changed files with 5 additions and 4 deletions
|
@ -8,8 +8,8 @@ fn main() {
|
|||
conn.close() or {}
|
||||
}
|
||||
|
||||
println(' peer: $conn.peer_addr()')
|
||||
println('local: $conn.addr()')
|
||||
println(' peer: ${conn.peer_addr() ?}')
|
||||
println('local: ${conn.addr() ?}')
|
||||
|
||||
// Simple http HEAD request for a file
|
||||
conn.write_string('HEAD /index.html HTTP/1.0\r\n\r\n') ?
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue