summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKyleMiles <krm504@nyu.edu>2023-05-31 11:10:55 -0400
committerKyleMiles <krm504@nyu.edu>2023-05-31 11:11:29 -0400
commit348815b2ee562110063c512634d3543bd3ad80b6 (patch)
treef9d3bea45877596c76b93992dc309cf9322aeaec
parentb3c68db7d52af0e5976b9c69d0412aabbd91c86b (diff)
Rustdoc warning cleanup (fixes dead links)
-rw-r--r--rust/src/binaryview.rs2
-rw-r--r--rust/src/references.rs8
2 files changed, 5 insertions, 5 deletions
diff --git a/rust/src/binaryview.rs b/rust/src/binaryview.rs
index fbbe4a58..07c079d2 100644
--- a/rust/src/binaryview.rs
+++ b/rust/src/binaryview.rs
@@ -476,7 +476,7 @@ pub trait BinaryViewExt: BinaryViewBase {
}
}
- /// You likely would also like to call [`define_user_symbol`] to bind this data variable with a name
+ /// You likely would also like to call [`Self::define_user_symbol`] to bind this data variable with a name
fn define_user_data_var(&self, dv: DataVariable) {
unsafe {
BNDefineUserDataVariable(self.as_ref().handle, dv.address, &mut dv.t.into());
diff --git a/rust/src/references.rs b/rust/src/references.rs
index 5e878a7d..76ac4493 100644
--- a/rust/src/references.rs
+++ b/rust/src/references.rs
@@ -5,9 +5,9 @@ use binaryninjacore_sys::{BNFreeCodeReferences, BNFreeDataReferences, BNReferenc
use std::mem::ManuallyDrop;
/// A struct representing a single code cross-reference.
-/// Taking a cue from [LinearDisassemblyLine], this struct uses [ManuallyDrop] to
-/// prevent destructors from being run on the [Function] object allocated by
-/// the core in [BNGetCodeReferences] (et al). The reference is cleaned up on [Drop] of
+/// Taking a cue from [`crate::linearview::LinearDisassemblyLine`], this struct uses [ManuallyDrop] to
+/// prevent destructors from being run on the [`Function`] object allocated by
+/// the core in `BNGetCodeReferences` (et al). The reference is cleaned up on [Drop] of
/// the enclosing array object.
#[derive(Debug)]
pub struct CodeReference {
@@ -18,7 +18,7 @@ pub struct CodeReference {
/// A struct representing a single data cross-reference.
/// Data references have no associated metadata, so this object has only
-/// a single [address] attribute.
+/// a single [`DataReference::address`] attribute.
pub struct DataReference {
pub address: u64,
}