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

docs: use the actual most recent output of c2v in the example

This commit is contained in:
Delyan Angelov 2022-06-23 01:39:39 +03:00
parent b8d9bfec16
commit a7108ff05c
No known key found for this signature in database
GPG Key ID: 66886C0F12D595ED

View File

@ -47,6 +47,9 @@ It will create `primes.v` with the following contents:
```v ```v
[translated]
module main
fn is_prime(x int) bool { fn is_prime(x int) bool {
for i := 2; i <= x / 2; i++ { for i := 2; i <= x / 2; i++ {
if x % i == 0 { if x % i == 0 {