Skip to content

Commit 21b3541

Browse files
committed
Fix typos
1 parent 9c4c1f6 commit 21b3541

File tree

9 files changed

+10
-10
lines changed

9 files changed

+10
-10
lines changed

bindings/nostr-ffi/src/nips/nip11.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -178,7 +178,7 @@ impl From<nip11::Limitation> for Limitation {
178178
}
179179
}
180180

181-
/// A retention shedule for the relay
181+
/// A retention schedule for the relay
182182
#[derive(Record)]
183183
pub struct Retention {
184184
/// The event kinds this retention pertains to

crates/nostr-database/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ Database for Nostr apps
44

55
## Nostr Database Trait
66

7-
This library cointains the `NostrDatabase` and `NostrDatabaseExt` traits. You can use the [default backends](#default-backends) or implement your one (like PostgreSQL, ...).
7+
This library contains the `NostrDatabase` and `NostrDatabaseExt` traits. You can use the [default backends](#default-backends) or implement your one (like PostgreSQL, ...).
88

99
## Default backends
1010

@@ -33,4 +33,4 @@ This project is distributed under the MIT software license - see the [LICENSE](.
3333

3434
⚡ Tips: <https://getalby.com/p/yuki>
3535

36-
⚡ Lightning Address: [email protected]
36+
⚡ Lightning Address: [email protected]

crates/nostr-database/src/flatbuffers/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ use crate::raw::RawEvent;
2525
/// FlatBuffers Error
2626
#[derive(Debug, Error)]
2727
pub enum Error {
28-
/// Invalud FlatBuffer
28+
/// Invalid FlatBuffer
2929
#[error(transparent)]
3030
InvalidFlatbuffer(#[from] InvalidFlatbuffer),
3131
#[error(transparent)]

crates/nostr-database/src/index.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -498,7 +498,7 @@ impl DatabaseIndexes {
498498

499499
let filter: Filter = coordinate.into();
500500
let filter: Filter = filter.until(created_at);
501-
// Not check if ev.pubkey match the pubkey_prefix because asume that query
501+
// Not check if ev.pubkey match the pubkey_prefix because assume that query
502502
// returned only the events owned by pubkey_prefix
503503
to_discard.extend(
504504
self.internal_generic_query(index, deleted_ids, filter)

crates/nostr-indexeddb/examples/webapp/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
If you don't already have it installed, it's time to install Rust: <https://www.rust-lang.org/tools/install>.
66
The rest of this guide assumes a typical Rust installation which contains both `rustup` and Cargo.
77

8-
### Initalization
8+
### Initialization
99

1010
```bash
1111
make init

crates/nostr/src/nips/nip11.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,7 @@ pub struct Limitation {
129129
pub created_at_upper_limit: Option<Timestamp>,
130130
}
131131

132-
/// A retention shedule for the relay
132+
/// A retention schedule for the relay
133133
#[derive(Debug, Clone, Default, PartialEq, Eq, PartialOrd, Ord, Hash, Serialize, Deserialize)]
134134
pub struct Retention {
135135
/// The event kinds this retention pertains to

crates/nostr/src/nips/nip44/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ pub enum Error {
3434
V2(v2::ErrorV2),
3535
/// Error while decoding from base64
3636
Base64Decode(base64::DecodeError),
37-
/// Invalid lenght
37+
/// Invalid length
3838
InvalidLength,
3939
/// Error while encoding to UTF-8
4040
Utf8Encode,

crates/nostr/src/nips/nip47.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -756,7 +756,7 @@ mod test {
756756
}
757757

758758
#[test]
759-
fn seralize_request() {
759+
fn serialize_request() {
760760
let request = Request {
761761
method: Method::PayInvoice,
762762
params: RequestParams::PayInvoice(PayInvoiceRequestParams { invoice: "lnbc210n1pj99rx0pp5ehevgz9nf7d97h05fgkdeqxzytm6yuxd7048axru03fpzxxvzt7shp5gv7ef0s26pw5gy5dpwvsh6qgc8se8x2lmz2ev90l9vjqzcns6u6scqzzsxqyz5vqsp".to_string() }),

crates/nostr/src/nips/nip57.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -397,7 +397,7 @@ mod tests {
397397
use crate::FromBech32;
398398

399399
#[test]
400-
fn test_enrypt_decrypt_private_zap_message() {
400+
fn test_encrypt_decrypt_private_zap_message() {
401401
let secret_key =
402402
SecretKey::from_str("6b911fd37cdf5c81d4c0adb1ab7fa822ed253ab0ad9aa18d77257c88b29b718e")
403403
.unwrap();

0 commit comments

Comments
 (0)