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

docs: fix C primes example in the tutorials (fixes c2v translation on linux)

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

View File

@ -18,7 +18,7 @@ and various expressions.
```c
#include <stdio.h>
#include <math.h>
#include <stdbool.h>
bool is_prime(int x) {
for (int i = 2; i <= x / 2; i++) {
@ -35,7 +35,6 @@ int main() {
}
return 0;
}
```
We can translate the C file to V by simply running