Fix typos

This commit is contained in:
cosineblast 2025-03-05 15:56:34 -03:00
parent f15fe84df6
commit 04df4130a4
4 changed files with 8 additions and 8 deletions

View File

@ -20,7 +20,7 @@ If a message is received while this command is executing, it may also be discard
}
fn signature(&self) -> nu_protocol::Signature {
Signature::build("mail flush")
Signature::build("mail clear")
.category(Category::Experimental)
.input_output_types(vec![(Type::Nothing, Type::Nothing)])
.allow_variants_without_examples(true)

View File

@ -14,14 +14,14 @@ impl Command for MailRecv {
}
fn description(&self) -> &str {
"Read a message from the mailbox"
"Read a message from the mailbox."
}
fn extra_description(&self) -> &str {
r#"When messages are sent to the current process, they get stored in what is called the "mailbox".
This commands reads and returns a message from the mailbox, in a first-in-first-out fashion.
j
Messages may have numeric flags attatched to them. This commands supports filtering out messages that do not satisfy a given tag, by using the `tag` flag.
Messages may have numeric flags attached to them. This commands supports filtering out messages that do not satisfy a given tag, by using the `tag` flag.
If no tag is specified, this command will accept any message.
If no message with the specified tag (if any) is available in the mailbox, this command will block the current thread until one arrives.
@ -40,7 +40,7 @@ in no particular order, regardless of the specified timeout parameter.
.named(
"timeout",
SyntaxShape::Duration,
"The maximum duration to wait for",
"The maximum time duration to wait for.",
None,
)
.input_output_types(vec![(Type::Nothing, Type::Any)])

View File

@ -10,7 +10,7 @@ impl Command for MailSend {
}
fn description(&self) -> &str {
"Send a message to a job"
"Send a message to the mailbox of a job."
}
fn extra_description(&self) -> &str {
@ -31,7 +31,7 @@ This command never blocks.
.required(
"id",
SyntaxShape::Int,
"The id of the job to send the message to",
"The id of the job to send the message to.",
)
.named("tag", SyntaxShape::Int, "A tag for the message", None)
.input_output_types(vec![(Type::Any, Type::Nothing)])

View File

@ -229,11 +229,11 @@ impl FrozenJob {
pub struct CurrentJob {
pub id: JobId,
// The backgorund thread job associated with this thread.
// The background thread job associated with this thread.
// If None, it indicates this thread is currently the main job
pub background_thread_job: Option<ThreadJob>,
// note: altough the mailbox is Mutex'd, it is only ever accessed
// note: although the mailbox is Mutex'd, it is only ever accessed
// by the current job's threads
pub mailbox: Arc<Mutex<Mailbox>>,
}