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:
parent
b8d9bfec16
commit
a7108ff05c
@ -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 {
|
||||||
|
Loading…
Reference in New Issue
Block a user