From 54e93385b8c4811def48ea982b3ca84e7ac6614f Mon Sep 17 00:00:00 2001 From: Michael Howell Date: Sat, 3 Feb 2024 10:44:27 -0700 Subject: [PATCH] Fix busted doc comment (#1392) * Fix busted doc comment This doc comment contains raw HTML, when it's supposed to contain generics. Fix this by wrapping them as code. * Update src/handle.rs --------- Co-authored-by: Matt Mastracci --- src/handle.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/handle.rs b/src/handle.rs index a0a4d5ab..3bd70c3c 100644 --- a/src/handle.rs +++ b/src/handle.rs @@ -62,14 +62,14 @@ extern "C" { /// longer used. /// /// It is safe to extract the object stored in the handle by -/// dereferencing the handle (for instance, to extract the *Object from -/// a Local); the value will still be governed by a handle +/// dereferencing the handle (for instance, to extract the `*Object` from +/// a `Local`); the value will still be governed by a handle /// behind the scenes and the same rules apply to these values as to /// their handles. /// /// Note: Local handles in Rusty V8 differ from the V8 C++ API in that they are /// never empty. In situations where empty handles are needed, use -/// Option. +/// `Option`. #[repr(C)] #[derive(Debug)] pub struct Local<'s, T>(NonNull, PhantomData<&'s ()>);