Skip to content

Commit

Permalink
android rustdoc typo and grammar fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
mcginty committed Feb 14, 2025
1 parent e66f075 commit c72146e
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions rustls-platform-verifier/src/android.rs
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
//! On Android, initialization must be done before any verification is attempted.
//!
//! <div class="warning">
//! Some manual setup is required, outside of cargo, to use this crate on Android. In order to use
//! Some manual setup is required outside of cargo to use this crate on Android. In order to use
//! Android’s certificate verifier, the crate needs to call into the JVM. A small Kotlin component
//! must be included in your app’s build to support `rustls-platform-verifier`.
//! must be included in your app’s build to support rustls-platform-verifier.
//!
//! See the [crate's Android section][crate#android] for more details.
//! </div>
Expand Down Expand Up @@ -87,10 +87,10 @@ fn global() -> &'static Global {
.expect("Expect rustls-platform-verifier to be initialized")
}

/// Initialize given a typical Android NDK `JNIEnv` and `jobject` context.
/// Initialize given a typical Android NDK [`JNIEnv`] and [`JObject`] context.
///
/// This method will setup and store an environment locally. This is useful if nothing else in your
/// application needs access the Android runtime.
/// application needs to access the Android runtime.
pub fn init_with_env(env: &mut JNIEnv, context: JObject) -> Result<(), JNIError> {
GLOBAL.get_or_try_init(|| -> Result<_, JNIError> {
let loader =
Expand Down

0 comments on commit c72146e

Please sign in to comment.