[llvm] 9751af2 - [Docs] Fix incorrect return type for example code
Jim Lin via llvm-commits
llvm-commits at lists.llvm.org
Wed Jun 9 00:19:35 PDT 2021
Author: Jim Lin
Date: 2021-06-09T15:22:49+08:00
New Revision: 9751af22c49926840e043fa4c386ba2bfafa2053
URL: https://github.com/llvm/llvm-project/commit/9751af22c49926840e043fa4c386ba2bfafa2053
DIFF: https://github.com/llvm/llvm-project/commit/9751af22c49926840e043fa4c386ba2bfafa2053.diff
LOG: [Docs] Fix incorrect return type for example code
Added:
Modified:
llvm/docs/Vectorizers.rst
Removed:
################################################################################
diff --git a/llvm/docs/Vectorizers.rst b/llvm/docs/Vectorizers.rst
index 7a827fb6ea464..a6565d4f8f166 100644
--- a/llvm/docs/Vectorizers.rst
+++ b/llvm/docs/Vectorizers.rst
@@ -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;
}
More information about the llvm-commits
mailing list