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