Skip to content

Commit

Permalink
Fix docs for DynObject
Browse files Browse the repository at this point in the history
  • Loading branch information
mitsuhiko committed May 15, 2024
1 parent 0f946da commit 78382a3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions minijinja/src/value/type_erase.rs
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ macro_rules! type_erase {
}

impl $erased_t_name {
#[doc = concat!("Returns a new boxed, type-erased [`", stringify!($T), "`].")]
#[doc = concat!("Returns a new boxed, type-erased [`", stringify!($t_name), "`].")]
$v fn new<T: $t_name + 'static>(v: std::sync::Arc<T>) -> Self {
let ptr = std::sync::Arc::into_raw(v) as *const T as *const ();
let vtable = &VTable {
Expand Down Expand Up @@ -66,7 +66,7 @@ macro_rules! type_erase {

$(
#[doc = concat!(
"Calls [`", stringify!($T), "::", stringify!($f),
"Calls [`", stringify!($t_name), "::", stringify!($f),
"`] of the underlying boxed value."
)]
$v fn $f(&self, $($p: $t),*) $(-> $r)? {
Expand Down

0 comments on commit 78382a3

Please sign in to comment.