Add some miscellaneous documentation

This commit adds some documentation to miscellaneous functions and
classes.

Signed-off-by: Daniel D’Aquino <daniel@daquino.me>
This commit is contained in:
Daniel D’Aquino
2025-02-21 20:31:57 -08:00
parent e42c09883a
commit 09ce3af11e
7 changed files with 66 additions and 7 deletions

View File

@@ -7,6 +7,18 @@
import Foundation
/// The sequence of strings in a single nostr event tag
///
/// Example 1:
/// ```json
/// ["r", "wss://nostr-relay.example.com", "read"]
/// ```
///
/// Example 2:
/// ```json
/// ["p", "8b2be0a0ad34805d76679272c28a77dbede9adcbfdca48c681ec8b624a1208a6"]
/// ```
struct TagSequence: Sequence {
let note: NdbNote
let tag: UnsafeMutablePointer<ndb_tag>