From c72146eb9b5be06e909cd12a383b195b8d908fcd Mon Sep 17 00:00:00 2001 From: Jake McGinty Date: Fri, 14 Feb 2025 13:29:22 -0600 Subject: [PATCH] android rustdoc typo and grammar fixes --- rustls-platform-verifier/src/android.rs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/rustls-platform-verifier/src/android.rs b/rustls-platform-verifier/src/android.rs index 695fe5f..50db61e 100644 --- a/rustls-platform-verifier/src/android.rs +++ b/rustls-platform-verifier/src/android.rs @@ -1,9 +1,9 @@ //! On Android, initialization must be done before any verification is attempted. //! //!
-//! 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. //!
@@ -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 =