From 3dc95ef765dd7e182f5baf7a96c4cc5cb93da0a6 Mon Sep 17 00:00:00 2001 From: Joseph T Lyons Date: Sat, 15 Aug 2020 01:11:07 -0400 Subject: [PATCH] Fix typo in "occurrences" --- crates/nu-cli/src/commands/histogram.rs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/crates/nu-cli/src/commands/histogram.rs b/crates/nu-cli/src/commands/histogram.rs index 0819cf172a..fc67c1e2d8 100644 --- a/crates/nu-cli/src/commands/histogram.rs +++ b/crates/nu-cli/src/commands/histogram.rs @@ -127,13 +127,13 @@ pub async fn histogram( .table_entries() .map(move |value| { let values = value.table_entries().cloned().collect::>(); - let ocurrences = values.len(); + let occurrences = values.len(); - (ocurrences, values[ocurrences - 1].clone()) + (occurrences, values[occurrences - 1].clone()) }) .collect::>() .into_iter() - .map(move |(ocurrences, value)| { + .map(move |(occurrences, value)| { let mut fact = TaggedDictBuilder::new(&name); let column_value = labels .get(idx) @@ -147,7 +147,7 @@ pub async fn histogram( .clone(); fact.insert_value(&column.item, column_value); - fact.insert_untagged("ocurrences", UntaggedValue::int(ocurrences)); + fact.insert_untagged("occurrences", UntaggedValue::int(occurrences)); let percentage = format!( "{}%",