This commit is contained in:
Joseph T. Lyons
2021-01-01 23:24:32 -05:00
committed by GitHub
parent 7eb8634ad7
commit a5f7600f6f
24 changed files with 37 additions and 37 deletions

View File

@ -122,7 +122,7 @@ async fn benchmark(raw_args: CommandArgs) -> Result<OutputStream, ShellError> {
benchmark_output(indexmap, output, passthrough, &tag, &mut context).await
} else {
Err(ShellError::untagged_runtime_error(
"Could not retreive CPU time",
"Could not retrieve CPU time",
))
}
}

View File

@ -73,7 +73,7 @@ async fn process_row(
match replace_for {
Ok(s) => match convert_bytes_to_string_using_format(s, format) {
Ok(b) => OutputStream::one(ReturnSuccess::value(
input.replace_data_at_column_path(&field, b).expect("Given that the existance check was already done, this souldn't trigger never"),
input.replace_data_at_column_path(&field, b).expect("Given that the existence check was already done, this shouldn't trigger never"),
)),
Err(e) => OutputStream::one(Err(e)),
},

View File

@ -90,7 +90,7 @@ pub async fn histogram(args: CommandArgs) -> Result<OutputStream, ShellError> {
} else if let Some((key, _)) = columns[0].split_last() {
key.as_string()
} else {
"frecuency".to_string()
"frequency".to_string()
};
let column = if let Some(ref column) = column_grouper {
@ -149,7 +149,7 @@ pub async fn histogram(args: CommandArgs) -> Result<OutputStream, ShellError> {
.ok_or_else(|| {
ShellError::labeled_error(
"Unable to load group labels",
"unabled to load group labels",
"unable to load group labels",
&name,
)
})?

View File

@ -14,7 +14,7 @@ impl WholeStreamCommand for SubCommand {
}
fn signature(&self) -> Signature {
Signature::build("math celi")
Signature::build("math ceil")
}
fn usage(&self) -> &str {

View File

@ -120,7 +120,7 @@ pub fn compute_stddev(values: &[Value], n: usize, name: &Tag) -> Result<Value, S
_ => {
return Err(ShellError::labeled_error(
"Could not take square root of variance",
"error occured here",
"error occurred here",
name.span,
))
}
@ -129,7 +129,7 @@ pub fn compute_stddev(values: &[Value], n: usize, name: &Tag) -> Result<Value, S
Some(stddev) => Ok(UntaggedValue::from(Primitive::Decimal(stddev)).into_value(name)),
None => Err(ShellError::labeled_error(
"Could not calculate stddev",
"error occured here",
"error occurred here",
name.span,
)),
}

View File

@ -33,7 +33,7 @@ impl WholeStreamCommand for SubCommand {
SyntaxShape::ColumnPath,
"optionally find and replace text by column paths",
)
.switch("all", "replace all occurences of find string", Some('a'))
.switch("all", "replace all occurrences of find string", Some('a'))
}
fn usage(&self) -> &str {