]> git.proxmox.com Git - perlmod.git/commitdiff
perlmod: doc fixup
authorWolfgang Bumiller <w.bumiller@proxmox.com>
Wed, 3 Nov 2021 12:06:13 +0000 (13:06 +0100)
committerWolfgang Bumiller <w.bumiller@proxmox.com>
Wed, 3 Nov 2021 12:06:13 +0000 (13:06 +0100)
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
perlmod/src/magic.rs

index 29f93e9f022f192e2f249ed54bbea1532e7bafd0..6b86147717cafa4a8e93beab255043be350960b9 100644 (file)
 //!         }
 //!     }
 //!
-//!     // *Do not* forget the destructor on the perl-side! Otherwise our data will be leaked,
-//!     // even if the perl value gets destroyed.
-//!     #[export(name = "DESTROY")]
-//!     fn destroy(#[raw] this: Value) {
-//!         perlmod::magic_destructor!(this: &MAGIC);
-//!     }
-//!
 //!     #[export(raw_return)] // `raw` and `raw_return` attributes are an optional optimization
 //!     fn new(#[raw] class: Value, content: String) -> Result<Value, Error> {
 //!         // `instantiate_magic` is a shortcut for the most "common" type of blessed object: a