mirror of
https://github.com/fish-shell/fish-shell
synced 2024-12-27 05:13:10 +00:00
Fix small typos
This commit is contained in:
parent
a9f346acf0
commit
17eadcff03
5 changed files with 5 additions and 5 deletions
|
@ -28,7 +28,7 @@ The following ``argparse`` options are available:
|
|||
The option being defined will only allow the long flag name to be used. The short flag name must still be defined (i.e., **--short** must be specified) but it cannot be used when parsing arguments using this option specification.
|
||||
|
||||
**-o** or **--optional-val**
|
||||
Tthe option being defined can take a value, but it is optional rather than required. If the option is seen more than once when parsing arguments, only the last value seen is saved. This means the resulting flag variable created by ``argparse`` will zero elements if no value was given with the option else it will have exactly one element.
|
||||
The option being defined can take a value, but it is optional rather than required. If the option is seen more than once when parsing arguments, only the last value seen is saved. This means the resulting flag variable created by ``argparse`` will zero elements if no value was given with the option else it will have exactly one element.
|
||||
|
||||
**-r** or **--required-val**
|
||||
The option being defined requires a value. If the option is seen more than once when parsing arguments, only the last value seen is saved. This means the resulting flag variable created by ``argparse`` will have exactly one element.
|
||||
|
|
|
@ -770,7 +770,7 @@ macro_rules! implement_acceptor_for_branch {
|
|||
}
|
||||
}
|
||||
|
||||
/// Visit the given fields in order, returning whether the visitation succeded.
|
||||
/// Visit the given fields in order, returning whether the visitation succeeded.
|
||||
macro_rules! visitor_accept_field {
|
||||
(
|
||||
$Self:ident,
|
||||
|
|
2
fish-rust/src/env/mod.rs
vendored
2
fish-rust/src/env/mod.rs
vendored
|
@ -9,7 +9,7 @@ pub use environment::*;
|
|||
use std::sync::atomic::{AtomicBool, AtomicUsize};
|
||||
pub use var::*;
|
||||
|
||||
/// Limit `read` to 100 MiB (bytes, not wide chars) by default. This can be overriden with the
|
||||
/// Limit `read` to 100 MiB (bytes, not wide chars) by default. This can be overridden with the
|
||||
/// `fish_read_limit` variable.
|
||||
pub const DEFAULT_READ_BYTE_LIMIT: usize = 100 * 1024 * 1024;
|
||||
|
||||
|
|
|
@ -774,7 +774,7 @@ pub fn fire_delayed(parser: &Parser) {
|
|||
for event in to_send {
|
||||
if event.is_blocked(parser) {
|
||||
if blocked_events.is_none() {
|
||||
blocked_events = Some(BLOCKED_EVENTS.lock().expect("Mutex posioned"));
|
||||
blocked_events = Some(BLOCKED_EVENTS.lock().expect("Mutex poisoned"));
|
||||
}
|
||||
blocked_events.as_mut().unwrap().push(event);
|
||||
} else {
|
||||
|
|
|
@ -1416,7 +1416,7 @@ fn process_mark_finished_children(parser: &Parser, block_ok: bool) {
|
|||
let pid = unsafe {
|
||||
libc::waitpid(proc.pid(), &mut statusv, WNOHANG | WUNTRACED | WCONTINUED)
|
||||
};
|
||||
assert!(pid <= 0 || pid == proc.pid(), "Unexpcted waitpid() return");
|
||||
assert!(pid <= 0 || pid == proc.pid(), "Unexpected waitpid() return");
|
||||
if pid <= 0 {
|
||||
continue;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue