1
Fork 0
mirror of https://github.com/RGBCube/nu_scripts synced 2025-08-05 08:37:46 +00:00

use typos for corrections (#833)

I used [typos](https://github.com/crate-ci/typos/).
I manually checked all the corrections and they seem safe to me.
There are still some left, but those in this PR are good
This commit is contained in:
Maxim Uvarov 2024-05-08 19:47:54 +08:00 committed by GitHub
parent a0aa600153
commit afde2592a6
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
42 changed files with 102 additions and 90 deletions

View file

@ -91,7 +91,7 @@ export def isleap [year: int] {
if ( (($year mod 4) == 0 and ($year mod 100) != 0) or ($year mod 400) == 0 ) { echo "It is a leap year." } else { echo "It is not a leap year."}
}
#Greatest common divisior (gcd) between 2 integers
#Greatest common divisor (gcd) between 2 integers
export def gcd [a: int, b:int] {
if $a < $b {
gcd $b $a