Skip to content

Commit 1757f7c

Browse files
committed
README tweaks
1 parent 5d56609 commit 1757f7c

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ Use the helper function `jni::MakeNativeMethod` to construct method arguments fo
7272
jni::MakeNativeMethod<decltype(myFunction), myFunction>(name, signature)
7373
```
7474

75-
The `decltype` is necessary because it is not possible to infer the types from a non-type template parameter. You may wish to use a macro to avoid repetition. See below for example code.
75+
The repetition of `myFunction` with `decltype` is necessary because it is not possible to infer the function type from the non-type template parameter. You may wish to define and use a macro to avoid the repetition.
7676
* A `const char *` name and lamba whose parameter and return types use high-level jni.hpp wrapper types. In this case, jni.hpp will compute the signature automatically.
7777
* A `const char *` name and function pointer whose parameter and return types use high-level jni.hpp wrapper types. Again, jni.hpp will compute the signature automatically, and again, the function pointer must be provided as a template parameter rather than method parameter.
7878

@@ -82,8 +82,8 @@ Finally, jni.hpp provides a mechanism for registering a "native peer": a long-li
8282

8383
Example code for both the low-level and high-level wrappers is provided in [the `examples` subdirectory](https://github.com/mapbox/jni.hpp/tree/master/examples). This code shows the use of jni.hpp for:
8484

85-
* Binding native methods such that they can be called from Java.
86-
* Calling back into Java methods from native code.
85+
* Registering native methods such that they can be called from Java.
86+
* Calling back into Java methods from native methods.
8787
* Native peer registration.
8888

8989
## Prior art

0 commit comments

Comments
 (0)