Skip to content

Commit 7b0a582

Browse files
committed
nostr: improve Tag::is_root and Tag::is_reply doc
Signed-off-by: Yuki Kishimoto <[email protected]>
1 parent 89c1384 commit 7b0a582

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

bindings/nostr-ffi/src/event/tag.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -408,12 +408,12 @@ impl Tag {
408408
}
409409
}
410410

411-
/// Check if `Tag` is an event `root`
411+
/// Check if is a standard event tag with `root` marker
412412
pub fn is_root(&self) -> bool {
413413
self.inner.is_root()
414414
}
415415

416-
/// Check if `Tag` is an event `reply`
416+
/// Check if is a standard event tag with `reply` marker
417417
pub fn is_reply(&self) -> bool {
418418
self.inner.is_reply()
419419
}

bindings/nostr-js/src/event/tag.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -313,14 +313,14 @@ impl JsTag {
313313
}
314314
}
315315

316-
/// Check if `Tag` is an event `root`
316+
/// Check if is a standard event tag with `root` marker
317317
#[inline]
318318
#[wasm_bindgen(js_name = isRoot)]
319319
pub fn is_root(&self) -> bool {
320320
self.inner.is_root()
321321
}
322322

323-
/// Check if `Tag` is an event `reply`
323+
/// Check if is a standard event tag with `reply` marker
324324
#[inline]
325325
#[wasm_bindgen(js_name = isReply)]
326326
pub fn is_reply(&self) -> bool {

crates/nostr/src/event/tag/mod.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -277,7 +277,7 @@ impl Tag {
277277
Self::new_with_empty_cell(buf)
278278
}
279279

280-
/// Check if tag is an event `root`
280+
/// Check if is a standard event tag with `root` marker
281281
#[inline]
282282
pub fn is_root(&self) -> bool {
283283
matches!(
@@ -289,7 +289,7 @@ impl Tag {
289289
)
290290
}
291291

292-
/// Check if tag is an event `reply`
292+
/// Check if is a standard event tag with `reply` marker
293293
#[inline]
294294
pub fn is_reply(&self) -> bool {
295295
matches!(

0 commit comments

Comments
 (0)