Skip to content

Commit afde259

Browse files
authored
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
1 parent a0aa600 commit afde259

File tree

42 files changed

+102
-90
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

42 files changed

+102
-90
lines changed

assets/gh-emoji.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10849,7 +10849,7 @@
1084910849
"tags": [],
1085010850
"unicode_version": "6.0"
1085110851
}, {
10852-
"aliases": ["womens"],
10852+
"aliases": ["women"],
1085310853
"category": "Symbols",
1085410854
"description": "women’s room",
1085510855
"emoji": "🚺",

before_v0.60/coloring/256_color_testpattern.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ function contrast_colour {
4040

4141
# Uncomment the below for more precise luminance calculations
4242

43-
# # Calculate percieved brightness
43+
# # Calculate perceived brightness
4444
# # See https://www.w3.org/TR/AERT#color-contrast
4545
# # and http://www.itu.int/rec/R-REC-BT.601
4646
# # Luminance is in range 0..5000 as each value is 0..5

before_v0.60/coloring/gradient_40x160.ps1

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ function Get-Character {
1515
# ~1900 ms
1616
function main {
1717
# This is the same script as gradient.ps1 but hard coded
18-
# to 40x160 for nushell comparisions
18+
# to 40x160 for nushell comparisons
1919
for ($y = 0; $y -le 39; $y++) {
2020
$Color = 25
2121
Set-Cursor -x $PSItem -y $y
@@ -31,7 +31,7 @@ function main {
3131
# Note that the x loop has half the characters so it doesn't count
3232
function main2 {
3333
# This is the same script as gradient.ps1 but hard coded
34-
# to 40x160 for nushell comparisions
34+
# to 40x160 for nushell comparisons
3535
for ($y = 0; $y -le 39; $y++) {
3636
$Color = 25
3737
$row = @()
@@ -44,11 +44,11 @@ function main2 {
4444
}
4545
}
4646

47-
# Store the characters in a string and contatenate, then output a row at a time
47+
# Store the characters in a string and concatenate, then output a row at a time
4848
# ~265 ms
4949
function main3 {
5050
# This is the same script as gradient.ps1 but hard coded
51-
# to 40x160 for nushell comparisions
51+
# to 40x160 for nushell comparisons
5252
for ($y = 0; $y -le 39; $y++) {
5353
$Color = 25
5454
$row = ""
@@ -65,7 +65,7 @@ function main3 {
6565
# ~240 ms
6666
function main4 {
6767
# This is the same script as gradient.ps1 but hard coded
68-
# to 40x160 for nushell comparisions
68+
# to 40x160 for nushell comparisons
6969
$row = [System.Text.StringBuilder]""
7070
for ($y = 0; $y -le 39; $y++) {
7171
$Color = 25

before_v0.60/coloring/nu_index_fg2.nu

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# this script uses foreground ansi index colors to print
2-
# a table of 16 rows by 16 colums where each item is a
2+
# a table of 16 rows by 16 columns where each item is a
33
# different color
44
def show_index_colors [] {
55
let prefix = "38;5;"

before_v0.60/prompt/left_and_right_prompt.nu

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ def construct_prompt [] {
2020
# get the terminal width
2121
let term_width = (term size -w)
2222

23-
# get the curren time
23+
# get the current time
2424
let current_time = (date now | date format '%I:%M:%S%.3f %p')
2525

2626
# let's construct the left and right prompt
@@ -39,7 +39,7 @@ def construct_prompt [] {
3939
# the right prompt length without the ansi escapes
4040
let right_len = ($right_colored | ansi strip | str length)
4141

42-
# let's calcuate the length of the right prompt so we know how much to pad the left prompt
42+
# let's calculate the length of the right prompt so we know how much to pad the left prompt
4343
let calculated_right_len = ($term_width - $left_len + ($right_colored_len - $right_len))
4444

4545
# finally, let's make the prompt

before_v0.60/stdlib_candidate/get-latest-release-linux.nu

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ def get-latest-linux [] {
2929
# update our progress
3030
$"Copying files from /tmp/($root_file_name)/*/* to ~/.cargo/bin(char newline)"
3131
# this is for testing so it doesn't overwrite my real nu. this should really
32-
# be a paremeter
32+
# be a parameter
3333
mkdir release
3434
# construct the copy from and to paths
3535
let cp_from_path = $"/tmp/($root_file_name)/*/*"

before_v0.60/weather/get-weather.nu

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ let URL_WEATHER = "https://api.openweathermap.org/data/2.5/weather"
5656
def get_weather_by_ip [locIdx: int, units: string] {
5757
# units
5858
# f = imperial aka Fahrenheit
59-
# c = metric aka Celcius
59+
# c = metric aka Celsius
6060
let coords = (get_location_by_ip $locIdx)
6161
if ($coords | length) > 1 {
6262
[
@@ -226,7 +226,7 @@ def state_abbrev_lookup [state_name: string] {
226226
# > get_weather -l 1
227227
# This changes to location 1. Locations are listed in the locations custom command above
228228
# > get_weather -l 2 -u c
229-
# This uses location 2 and Celcius degrees. f = Fahrenheit, c = Celcius
229+
# This uses location 2 and Celsius degrees. f = Fahrenheit, c = Celsius
230230

231231
# Since I live in the USA I have not tested outside the country.
232232
# We'll take PRs for things that are broke or augmentations.

custom-completions/btm/btm-completions.nu

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -14,10 +14,10 @@ export extern "btm" [
1414
--basic(-b) # Use a more basic look
1515
--battery # Show battery widget
1616
--case_sensitive(-S) # Enables case sensitivity
17-
--celsius(-c) # Sets temp type to celcius
17+
--celsius(-c) # Sets temp type to celsius
1818
--color: string@colorScheme # Use a pre-defined colorscheme
1919
--config(-C): string # Sets the location of the config file
20-
--curent_usage(-u) # Set CPU% to current system CPU%
20+
--current_usage(-u) # Set CPU% to current system CPU%
2121
--default_time_value(-t): int # Time value for graphs
2222
--default_widget_count: int # Sets nth selected widget type to use default widget
2323
--default_widget_type: string@widgetType # Set default select widget
@@ -37,11 +37,11 @@ export extern "btm" [
3737
--network_use_bytes # Network widget as bytes
3838
--network_use_logs # Network eidget with logs
3939
--process_command # Show processes as commands
40-
--rate(-r): int # Sets referesh
40+
--rate(-r): int # Sets refresh
4141
--regex(-R) # Enable regex by default
4242
--show_table_scroll_position # Show scroll position
43-
--time-delta(-d): int # Amout changed when zooming in/out
43+
--time-delta(-d): int # Amount changed when zooming in/out
4444
--tree(-T) # Show processes as tree
4545
--version(-V) # Prints version information
46-
--whole-word(-w) # Search results match entrie query
46+
--whole-word(-w) # Search results match entries query
4747
]

custom-completions/cargo/cargo-completions.nu

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -167,7 +167,7 @@ export extern "cargo clean" [
167167
# Build a package's documentation
168168
export extern "cargo doc" [
169169
--open # Open the docs in a browser after building them
170-
--no-deps # Do not build documentation for dependencie
170+
--no-deps # Do not build documentation for dependency
171171
--document-private-items # Include non-public items in the documentation
172172
--package(-p): string@"nu-complete cargo packages" # Document only the specified packages
173173
--workspace # Document all members in the workspace
@@ -307,7 +307,7 @@ export extern "cargo test" [
307307

308308
# Execute benchmarks of a package
309309
export extern "cargo bench" [
310-
bench_option_seperator?: string
310+
bench_option_separator?: string
311311
...options: any # Options to be passed to the benchmarks
312312
--no-run # Compile, but don't run benchmarks
313313
--no-fail-fast # Run all benchmarks regardless of failure

custom-completions/curl/curl-completions.nu

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ extern "curl" [
2323
--crlfile # (TLS) Provide a file using PEM format with a Certificate Revocation List
2424
--data-ascii # (HTTP) Alias for -d, --data
2525
--data-binary # (HTTP) Post data exactly as specified with no processing
26-
--data-raw # (HTTP) Post data like --data but without interpeting "@
26+
--data-raw # (HTTP) Post data like --data but without interpreting "@
2727
--data-urlencode # (HTTP) Post data URL-encoded
2828
--data(-d) # (HTTP) Sends the specified data in a POST request to the HTTP server
2929
--delegation # (GSS/kerberos) Tell the server how much it can delegate for user creds
@@ -254,7 +254,7 @@ extern "curl PEM, DER ENG P12" [
254254
--crlfile # (TLS) Provide a file using PEM format with a Certificate Revocation List
255255
--data-ascii # (HTTP) Alias for -d, --data
256256
--data-binary # (HTTP) Post data exactly as specified with no processing
257-
--data-raw # (HTTP) Post data like --data but without interpeting "@
257+
--data-raw # (HTTP) Post data like --data but without interpreting "@
258258
--data-urlencode # (HTTP) Post data URL-encoded
259259
--data(-d) # (HTTP) Sends the specified data in a POST request to the HTTP server
260260
--delegation # (GSS/kerberos) Tell the server how much it can delegate for user creds

0 commit comments

Comments
 (0)