Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

lib: trivial spelling fixes #25031

Merged
merged 1 commit into from Apr 20, 2017
Merged

lib: trivial spelling fixes #25031

merged 1 commit into from Apr 20, 2017

Conversation

tsaeger
Copy link
Contributor

@tsaeger tsaeger commented Apr 19, 2017

Motivation for this change

Noticed spelling errors in lib file, then found as many other spelling errors in lib.

Things done
  1. Found sorted list of "bad" words from aspell.

    cat lib/*.nix |aspell list |sort |uniq -c |sort -nr > spells.txt

  2. Went through the generated file and found a few more spelling errors in lib.

  • Tested using sandboxing
    (nix.useSandbox on NixOS,
    or option build-use-sandbox in nix.conf
    on non-NixOS)
  • Built on platform(s)
    • NixOS
    • macOS
    • Linux
  • Tested compilation of all pkgs that depend on this change using nix-shell -p nox --run "nox-review wip"
  • Tested execution of all binary files (usually in ./result/bin/)
  • Fits CONTRIBUTING.md.

@mention-bot
Copy link

@tsaeger, thanks for your PR! By analyzing the history of the files in this pull request, we identified @edolstra, @nbp and @wizeman to be potential reviewers.

lib/lists.nix Outdated
@@ -148,7 +148,7 @@ rec {
let found = filter pred list;
in if found == [] then default else head found;

/* Return true iff function `pred' returns true for at least element
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

"iff" is a short-hand for "if and only if" (using just "if" here suggests that the function could return true in other cases as well)

@joachifm
Copy link
Contributor

Having scanned it briefly, looks okay to me apart from the iff -> if change, which is incorrect.

@tsaeger
Copy link
Contributor Author

tsaeger commented Apr 20, 2017 via email

@tsaeger
Copy link
Contributor Author

tsaeger commented Apr 20, 2017

iff has been restored in the latest.

@Mic92 Mic92 merged commit 9585767 into NixOS:master Apr 20, 2017
@Mic92
Copy link
Member

Mic92 commented Apr 20, 2017

Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants