From 577f68753f5de293265cfa6b2eee86530bf4addf Mon Sep 17 00:00:00 2001 From: Wolfgang Bumiller Date: Thu, 23 Dec 2021 10:40:54 +0100 Subject: [PATCH] perlmod: doc fixups Signed-off-by: Wolfgang Bumiller --- perlmod/src/value.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/perlmod/src/value.rs b/perlmod/src/value.rs index c2275c8..66ca008 100644 --- a/perlmod/src/value.rs +++ b/perlmod/src/value.rs @@ -87,7 +87,7 @@ impl Value { } } - /// If the value is a hash, returns the associated [`Hash`]. + /// If the value is a hash, returns the associated [`struct@Hash`]. pub fn as_hash(&self) -> Option<&Hash> { match self { Value::Hash(v) => Some(v), @@ -95,7 +95,7 @@ impl Value { } } - /// If the value is a hash, returns the associated mutable [`Hash`]. + /// If the value is a hash, returns the associated mutable [`struct@Hash`]. pub fn as_hash_mut(&mut self) -> Option<&mut Hash> { match self { Value::Hash(v) => Some(v), @@ -194,7 +194,7 @@ impl Value { self.bless_sv(&pkgsv) } - /// Same as [`bless`] but the package string is already a perl [`ScalarRef`]. + /// Same as [`bless`](Self::bless()) but the package string is already a perl [`ScalarRef`]. pub fn bless_sv(&self, pkgsv: &ScalarRef) -> Result { let stash = unsafe { ffi::RSPL_gv_stashsv(pkgsv.sv(), 0) }; if stash.is_null() {