Skip to content
This repository was archived by the owner on Nov 17, 2022. It is now read-only.

Commit 44f0241

Browse files
committed
refactor: article improvments
1 parent 563b42c commit 44f0241

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

docs/core-concepts/android-runtime/marshalling/java-to-js.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -147,11 +147,11 @@ var objectArr = Array.create(java.lang.Object, 10);
147147
```
148148

149149
### Array of Primitive Types
150-
The automatic marshalling works only for cases with arrays of objects. In cases where you have a method that takes an array of primitive types, we need to convert as follows:
150+
The automatic marshalling works only for cases with arrays of objects. In cases where you have a method that takes an array of primitive types, you need to convert it as follows:
151151
```Java
152152
public static void myMethod(int[] someParam)
153153
```
154-
Then we need to invoke it as follows:
154+
Then yoy need to invoke it as follows:
155155
```JavaScript
156156
let arr = Array.create("int", 3);
157157
arr[0] = 1;
@@ -167,7 +167,7 @@ The above scenario gets more tricky with two-dimensional arrays. Consider a Java
167167
```Java
168168
public static void myMethod(java.lang.Integer[][] someParam)
169169
```
170-
The JavaScritp marshaled code will look like this:
170+
The marshalled JavaScript code will look like this:
171171
```JavaScript
172172
let arr = Array.create("[Ljava.lang.Integer;", 2);
173173
let elements = Array.create("java.lang.Integer", 3);

0 commit comments

Comments
 (0)