forked from OSchip/llvm-project
[Docs] Fix incorrect return type for example code
This commit is contained in:
parent
9c27fa3821
commit
9751af22c4
|
@ -254,7 +254,7 @@ The Loop Vectorizer can vectorize loops that count backwards.
|
||||||
|
|
||||||
.. code-block:: c++
|
.. code-block:: c++
|
||||||
|
|
||||||
int foo(int *A, int n) {
|
void foo(int *A, int n) {
|
||||||
for (int i = n; i > 0; --i)
|
for (int i = n; i > 0; --i)
|
||||||
A[i] +=1;
|
A[i] +=1;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue