commit f42ae0673d2a833e070aa2e27524126ba4249312
parent 474e2d8d57c9f75c3698239eeaa0993e758b1a82
Author: Daniel D’Aquino <daniel@daquino.me>
Date: Mon, 28 Jul 2025 14:36:11 -0700
Reword subscript out-of-bounds assertion
Changelog-None
Signed-off-by: Daniel D’Aquino <daniel@daquino.me>
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/nostrdb/NdbTagsIterator.swift b/nostrdb/NdbTagsIterator.swift
@@ -66,7 +66,7 @@ struct TagsSequence: Encodable, Sequence {
}
i += 1
}
- precondition(false, "sequence subscript oob")
+ precondition(false, "Sequence subscript out of bounds")
// it seems like the compiler needs this or it gets bitchy
let nil_ptr = OpaquePointer(bitPattern: 0)
return .init(note: .init(note: .init(ptr: nil_ptr), size: 0, owned: true, key: nil), tag: .init(ptr: nil_ptr))