Skip to content

Commit 2e6efe7

Browse files
committed
Clean up docs with suggestions from @MarijnS95
1 parent 883144d commit 2e6efe7

File tree

2 files changed

+2
-4
lines changed

2 files changed

+2
-4
lines changed

src/intent.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ impl<'env> Intent<'env> {
9696
})
9797
}
9898

99-
/// Builds a new [`Action::Chooser`](Action) Intent that wraps the given target intent.
99+
/// Builds a new [`Action::Chooser`] Intent that wraps the given target intent.
100100
/// ```no_run
101101
/// use android_intent::{Action, Intent};
102102
///

src/lib.rs

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,13 +8,11 @@ mod intent;
88
pub use intent::Intent;
99
use jni::{JNIEnv, JavaVM};
1010

11-
/// Run 'f' with the current `[JNIEnv]` from `ndk_context`.
11+
/// Run 'f' with the current [`JNIEnv`] from [`ndk_context`].
1212
pub fn with_current_env(f: impl FnOnce(JNIEnv)) {
1313
let cx = ndk_context::android_context();
1414
let vm = unsafe { JavaVM::from_raw(cx.vm().cast()) }.unwrap();
1515
let env = vm.attach_current_thread().unwrap();
1616

1717
f(env.clone());
18-
19-
drop(env);
2018
}

0 commit comments

Comments
 (0)