Skip to content

Commit 19e2e5b

Browse files
authored
[*/en] Fix typos across all files (#5435)
* [*/en] Fix typos across all files I've run `codespell` and `typos` spell checkers against all english pages. I've carefully filtered out all false positives and manually applied fixes. * [coffeescript/en] undo wrong typo fix
1 parent 4d7614d commit 19e2e5b

33 files changed

+63
-63
lines changed

ats.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ val y: int = id2 7 // works
8484
// can't have polymorphic t@ype parameters
8585
// fn id3 {a:t@ype} (x: a) = x // doesn't compile
8686
87-
// explicity specifying type parameters:
87+
// explicitly specifying type parameters:
8888
fn id4 {a:type} (x: a) = id {a} x // {} for non-template parameters
8989
fn id5 {a:type} (x: a) = id2<a> x // <> for template parameters
9090
fn id6 {a:type} (x: a) = id {..} x // {..} to explicitly infer it

ballerina.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -274,7 +274,7 @@ public function main() returns @tainted error? {
274274
// Compile-time taint checking for handling untrusted data
275275
string s1 = "abc";
276276
mySecureFunction(s1);
277-
// Explicitely make "s2" a tainted value. External input to a Ballerina
277+
// Explicitly make "s2" a tainted value. External input to a Ballerina
278278
// program such as command-line arguments and network input are by-default
279279
// marked as tainted data.
280280
string s2 = <@tainted> s1;
@@ -283,7 +283,7 @@ public function main() returns @tainted error? {
283283
string s2x = s2 + "abc";
284284
// The following line uncommented will result in a compilation error,
285285
// since we are passing a tainted value (s2x) to a function which
286-
// exepects an untainted value.
286+
// expects an untainted value.
287287
// mySecureFunction(s2x);
288288

289289
// Instantiating objects

crystal.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -432,7 +432,7 @@ class Human
432432
@name
433433
end
434434
435-
# The above functionality can be encapsulated using the propery method as follows
435+
# The above functionality can be encapsulated using the property method as follows
436436
property :name
437437
438438
# Getter/setter methods can also be created individually like this

css.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -217,7 +217,7 @@ body {
217217
background-color: var(--main-bg-color)
218218
}
219219

220-
/* Perfom a calculation (CSS 3) */
220+
/* Perform a calculation (CSS 3) */
221221
body {
222222
width: calc(100vw - 100px)
223223
}

directx9.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -289,7 +289,7 @@ bool SetupTransform() {
289289
result = _device->SetTransform(D3DTS_VIEW, &view); // apply the view matrix
290290
if (FAILED(result))
291291
return false;
292-
// Create a projection matrix that defines the view frustrum.
292+
// Create a projection matrix that defines the view frustum.
293293
// It transforms the view space to projection space.
294294
D3DXMATRIX projection{ };
295295
// Create a perspective projection using a left-handed coordinate system.
@@ -611,7 +611,7 @@ ComPtr<IDirect3DDevice9> _device{ };
611611
ComPtr<IDirect3DVertexBuffer9> _vertexBuffer{ };
612612
ComPtr<IDirect3DIndexBuffer9> _indexBuffer{ };
613613
ComPtr<IDirect3DVertexDeclaration9> _vertexDecl{ };
614-
// We have to add a ComPtr for the vertex- and pixel shader, aswell as one
614+
// We have to add a ComPtr for the vertex- and pixel shader, as well as one
615615
// for the constants (matrices) in our vertex shader.
616616
ComPtr<IDirect3DVertexShader9> _vertexShader{ };
617617
ComPtr<IDirect3DPixelShader9> _pixelShader{ };
@@ -666,7 +666,7 @@ bool SetupTransform() {
666666
return true;
667667
}
668668
// ...
669-
// Vertex and index buffer creation aswell as initialization stay unchanged.
669+
// Vertex and index buffer creation as well as initialization stay unchanged.
670670
// ...
671671
// After checking that shader model 3.0 is available we have to compile and
672672
// create the shaders.

easylang.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ b[] = a[]
7171
a[] &= 4
7272
print a[] ; print b[]
7373
#
74-
# array swapping ist fast
74+
# array swapping is fast
7575
#
7676
swap a[] b[]
7777
print a[] ; print b[]

emacs.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -275,7 +275,7 @@ briefly.
275275
- Manage tables in plain text (including spreadsheet-like
276276
capabilities)
277277
- Using the extension `org-babel`, write and execute code blocks in
278-
your file. The results are captured and are re-usable within the
278+
your file. The results are captured and are reusable within the
279279
file itself. Think Jupyter notebook for any language.
280280
- Display inline images and LaTeX formulas as images within your file
281281
(makes for a great note-taking system and/or personal wiki)

fortran.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -300,7 +300,7 @@ contains ! Start defining the program's internal procedures:
300300
integer :: f
301301
! function return type declared inside the function.
302302
integer :: cnt = 0 ! GOTCHA -
303-
! assigning a value at initalization
303+
! assigning a value at initialization
304304
! implies that the variable is
305305
! saved between function calls.
306306
@@ -478,7 +478,7 @@ do concurrent (x = 1:size(array, 1), y = 1:size(array, 2))
478478
array(x, y) = real(x)
479479
end do
480480
481-
! loop indices can also declared inside the contruct:
481+
! loop indices can also declared inside the construct:
482482
483483
real :: array(8, 16)
484484

golfscript.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -178,12 +178,12 @@ can pipe in or enter in your input at runtime.
178178
[[1 2 3 0]]
179179
> $ # we can also restore order by sorting the array
180180
[[0 1 2 3]]
181-
> 1 > # we can also use < > and = to get the indeces that match. Note this
181+
> 1 > # we can also use < > and = to get the indices that match. Note this
182182
# is not a filter! This is an index match. Filtering items greater than one
183183
# is done with {1>},
184184
[[1 2 3]]
185185
> 2 < # remember it's zero-indexed, so everything in this array is at an index
186-
# less than 2, the indeces are 0 and 1.
186+
# less than 2, the indices are 0 and 1.
187187
[[1 2]]
188188
> 1= # < and > return an array, even if it's one item. Equals always drops
189189
# it out of the array
@@ -308,7 +308,7 @@ I drive a stick, BTW.
308308
> 6),(;{*}* # but can we get shorter? We can save some space by incrementing
309309
# the 6, dropping the zero, and folding. 8 characters.
310310
> # we can also use fold to do the same thing with unfold
311-
1 6 # accumlator and multiplicand, we'll call A and M
311+
1 6 # accumulator and multiplicand, we'll call A and M
312312
{}{ # while M
313313
. # copy M, so now the stack is A M M
314314
@ # bring A to the top, so now M M A

hcl.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ filename: terraform.txt
88
## Introduction
99

1010
HCL (Hashicorp Configuration Language) is a high-level configuration language used in tools from
11-
Hashicorp (such as Terraform). HCL/Terraform is widely used in provisioning cloud infastructure and
11+
Hashicorp (such as Terraform). HCL/Terraform is widely used in provisioning cloud infrastructure and
1212
configuring platforms/services through APIs. This document focuses on HCL 0.13 syntax.
1313

1414
HCL is a declarative language and Terraform will consume all `*.tf` files in the current folder, so code

0 commit comments

Comments
 (0)