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

examples: fix optional in string interpolation and format error (#14079)

This commit is contained in:
yuyi
2022-04-19 18:29:53 +08:00
committed by GitHub
parent e16ce3af88
commit a318a2e09e
3 changed files with 5 additions and 4 deletions

View File

@@ -2,6 +2,6 @@ import rand
fn main() {
for _ in 0 .. 10 {
println('${rand.intn(255)}.${rand.intn(255)}.${rand.intn(255)}.${rand.intn(255)}')
println('${rand.intn(255) ?}.${rand.intn(255) ?}.${rand.intn(255) ?}.${rand.intn(255) ?}')
}
}