[Docs] Fix incorrect return type for example code
authorJim Lin <jim@andestech.com>
Wed, 9 Jun 2021 07:19:43 +0000 (15:19 +0800)
committerJim Lin <jim@andestech.com>
Wed, 9 Jun 2021 07:22:49 +0000 (15:22 +0800)
llvm/docs/Vectorizers.rst

index 7a827fb..a6565d4 100644 (file)
@@ -254,7 +254,7 @@ The Loop Vectorizer can vectorize loops that count backwards.
 
 .. code-block:: c++
 
-  int foo(int *A, int n) {
+  void foo(int *A, int n) {
     for (int i = n; i > 0; --i)
       A[i] +=1;
   }