maint: Use /// for doc comments

(cherry picked from commit 4a390197f71653dda99696ed5c9cbca8c6a95a4b)
This commit is contained in:
Robert Hensing 2024-05-24 11:15:43 +02:00
parent ffdbf49ec5
commit 37da6411d0
3 changed files with 10 additions and 14 deletions

View file

@ -107,7 +107,7 @@ impl EvalState {
self.context.check_err()?;
Ok(value)
}
/** Try turn any Value into a Value that isn't a Thunk. */
/// Try turn any Value into a Value that isn't a Thunk.
pub fn force(&self, v: &Value) -> Result<()> {
unsafe {
raw::value_force(self.context.ptr(), self.raw_ptr(), v.raw_ptr());
@ -340,7 +340,7 @@ pub fn gc_now() {
}
}
/** Run a function while making sure that the current thread is registered with the GC. */
/// Run a function while making sure that the current thread is registered with the GC.
pub fn gc_registering_current_thread<F, R>(f: F) -> Result<R>
where
F: FnOnce() -> R,

View file

@ -6,7 +6,7 @@ use std::ptr::{null_mut, NonNull};
pub type Int = i64;
/** The type of a value (or thunk) */
/// The type of a value (or thunk)
#[derive(Eq, PartialEq, Debug)]
pub enum ValueType {
AttrSet,