Add Github Actions workflow to check for typos (#7892)

- Add Github Actions workflow to check typos
- Fix existing typos
This commit is contained in:
Hofer-Julian
2023-01-28 22:22:56 +01:00
committed by GitHub
parent 1f810cd26a
commit 8787ec9fe8
6 changed files with 31 additions and 6 deletions

View File

@ -23,7 +23,7 @@ use nu_protocol::{ast::Call, ShellError};
pub fn grapheme_flags(call: &Call) -> Result<bool, ShellError> {
let g_flag = call.has_flag("grapheme-clusters");
// Check for the other flags and produce errors if they exist.
// Note that Nushell already prevents nonexistant flags from being used with commands,
// Note that Nushell already prevents nonexistent flags from being used with commands,
// so this function can be reused for both the --utf-8-bytes commands and the --code-points commands.
if g_flag && call.has_flag("utf-8-bytes") {
Err(ShellError::IncompatibleParametersSingle(