Skip to content

Commit 8e1f92d

Browse files
committed
chore: fix typos
1 parent 0c765f8 commit 8e1f92d

File tree

11 files changed

+13
-13
lines changed

11 files changed

+13
-13
lines changed

CONTRIBUTING.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ The codebase is maintained using the "contributor workflow" where everyone
66
without exception contributes patch proposals using "pull requests". This
77
facilitates social contribution, easy testing and peer review.
88

9-
To contribute a patch, the worflow is a as follows:
9+
To contribute a patch, the workflow is a as follows:
1010

1111
1. Fork Repository
1212
2. Create topic branch

bindings/nostr-sdk-ffi/src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ pub fn timestamp() -> u64 {
1919
#[allow(missing_docs)]
2020
#[allow(unused_imports)]
2121
mod ffi {
22-
// Extenal
22+
// External
2323
pub use nostr_ffi::{AccountMetadata, Contact, Event, EventBuilder, Filter, Keys, NostrError};
2424

2525
// Namespace

bindings/nostr-sdk-js/src/client/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ impl JsClient {
4242
self.inner.keys().into()
4343
}
4444

45-
/// Completly shutdown `Client`
45+
/// Completely shutdown `Client`
4646
#[wasm_bindgen]
4747
pub async fn shutdown(&self) -> Result<()> {
4848
self.inner.clone().shutdown().await.map_err(into_err)

bindings/nostr-sdk-js/src/relay/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ pub enum JsRelayStatus {
2727
Connecting,
2828
/// Relay disconnected, will retry to connect again
2929
Disconnected,
30-
/// Relay completly disconnected
30+
/// Relay completely disconnected
3131
Terminated,
3232
}
3333

crates/nostr-sdk/src/client/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -203,7 +203,7 @@ impl Client {
203203
self.remote_signer.clone().ok_or(Error::SignerNotConfigured)
204204
}
205205

206-
/// Completly shutdown [`Client`]
206+
/// Completely shutdown [`Client`]
207207
pub async fn shutdown(self) -> Result<(), Error> {
208208
Ok(self.pool.shutdown().await?)
209209
}

crates/nostr-sdk/src/relay/mod.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ pub enum RelayStatus {
6767
Connecting,
6868
/// Relay disconnected, will retry to connect again
6969
Disconnected,
70-
/// Relay completly disconnected
70+
/// Relay completely disconnected
7171
Terminated,
7272
}
7373

@@ -91,7 +91,7 @@ pub enum RelayEvent {
9191
// Ping,
9292
/// Close
9393
Close,
94-
/// Completly disconnect
94+
/// Completely disconnect
9595
Terminate,
9696
}
9797

crates/nostr-sdk/src/relay/pool.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -365,7 +365,7 @@ impl RelayPool {
365365
Ok(())
366366
}
367367

368-
/// Completly shutdown pool
368+
/// Completely shutdown pool
369369
pub async fn shutdown(self) -> Result<(), Error> {
370370
self.disconnect().await?;
371371
thread::spawn(async move {

crates/nostr/examples/tweet.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ fn main() -> Result<()> {
6060

6161
loop {
6262
let msg = socket.read_message().expect("Error reading message");
63-
let msg_text = msg.to_text().expect("Failed to conver message to text");
63+
let msg_text = msg.to_text().expect("Failed to convert message to text");
6464
if let Ok(handled_message) = RelayMessage::from_json(msg_text) {
6565
match handled_message {
6666
RelayMessage::Notice { message } => {

crates/nostr/src/event/tag.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -153,7 +153,7 @@ pub enum Report {
153153
Profanity,
154154
/// Something which may be illegal in some jurisdiction
155155
///
156-
/// Remenber: there is what is right and there is the law.
156+
/// Remember: there is what is right and there is the law.
157157
Illegal,
158158
/// Spam
159159
Spam,

crates/nostr/src/message/relay.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -307,7 +307,7 @@ mod tests {
307307

308308
#[test]
309309
fn test_handle_invalid_event() {
310-
//Mising Event field
310+
// Missing Event field
311311
let invalid_event_msg = r#"["EVENT", "random_string"]"#;
312312
//Event JSON with incomplete content
313313
let invalid_event_msg_content = r#"["EVENT", "random_string", {"id":"70b10f70c1318967eddf12527799411b1a9780ad9c43858f5e5fcd45486a13a5","pubkey":"379e863e8357163b5bce5d2688dc4f1dcc2d505222fb8d74db600f30535dfdfe"}]"#;

0 commit comments

Comments
 (0)