From efabfc8dac45d7f84e9649bc821a44d3ce50960b Mon Sep 17 00:00:00 2001 From: overlookmotel <557937+overlookmotel@users.noreply.github.com> Date: Thu, 26 Sep 2024 12:22:31 +0000 Subject: [PATCH] docs(semantic): improve doc comments on `Reference` methods (#6076) --- crates/oxc_semantic/src/reference.rs | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/crates/oxc_semantic/src/reference.rs b/crates/oxc_semantic/src/reference.rs index 4b06a58f7aa3f..4bf1ecc4e63e1 100644 --- a/crates/oxc_semantic/src/reference.rs +++ b/crates/oxc_semantic/src/reference.rs @@ -95,15 +95,17 @@ impl Reference { &mut self.flags } - /// Returns `true` if the identifier value was read. This is not mutually - /// exclusive with [`#is_write`] + /// Returns `true` if the identifier value was read. + /// + /// This is not mutually exclusive with [`Reference::is_write`]. #[inline] pub fn is_read(&self) -> bool { self.flags.is_read() } - /// Returns `true` if the identifier was written to. This is not mutually - /// exclusive with [`#is_read`] + /// Returns `true` if the identifier was written to. + /// + /// This is not mutually exclusive with [`Reference::is_read`]. #[inline] pub fn is_write(&self) -> bool { self.flags.is_write()