mirror of
https://github.com/vlang/v.git
synced 2025-09-13 22:42:26 +03:00
docs: use the actual most recent output of c2v in the example
This commit is contained in:
parent
b8d9bfec16
commit
a7108ff05c
1 changed files with 3 additions and 0 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue