Skip to content

Commit

Permalink
fix cppgc docs (#1618)
Browse files Browse the repository at this point in the history
  • Loading branch information
devsnek authored Sep 12, 2024
1 parent 8d5924f commit a729b24
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/cppgc.rs
Original file line number Diff line number Diff line change
Expand Up @@ -438,7 +438,7 @@ macro_rules! member {
}

#[doc = "Create a new "]
#[doc = stringify!(name)]
#[doc = stringify!($name)]
#[doc = " and initialize it with an object."]
pub fn new(other: &impl GetRustObj<T>) -> Self {
Self {
Expand Down Expand Up @@ -535,7 +535,7 @@ macro_rules! persistent {
}

#[doc = "Create a new "]
#[doc = stringify!(name)]
#[doc = stringify!($name)]
#[doc = " and initialize it with an object."]
pub fn new(other: &impl GetRustObj<T>) -> Self {
let this = unsafe { [< cppgc__ $name __CONSTRUCT >](other.get_rust_obj()) };
Expand Down

0 comments on commit a729b24

Please sign in to comment.