Skip to content
Snippets Groups Projects
Commit ed552d79 authored by aa.novozhilov's avatar aa.novozhilov
Browse files

Fix typo in examples

parent 97a498df
No related branches found
No related tags found
No related merge requests found
...@@ -90,7 +90,7 @@ assert (inA.length == inB.length); ...@@ -90,7 +90,7 @@ assert (inA.length == inB.length);
final float result = new float[inA.length]; final float result = new float[inA.length];
for (int i = 0; i < array.length; i++) { for (int i = 0; i < array.length; i++) {
result[i] = intA[i] + inB[i]; result[i] = inA[i] + inB[i];
} }
``` ```
...@@ -102,7 +102,7 @@ Kernel kernel = new Kernel() { ...@@ -102,7 +102,7 @@ Kernel kernel = new Kernel() {
@Override @Override
public void run() { public void run() {
int i = getGlobalId(); int i = getGlobalId();
result[i] = intA[i] + inB[i]; result[i] = inA[i] + inB[i];
} }
}; };
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment