Skip to content

Commit e778a59

Browse files
authored
Merge pull request #397 from limzykenneth/es6-typos
Fix 'letiable' typos
2 parents 8ac6a70 + 97103ae commit e778a59

File tree

12 files changed

+18
-18
lines changed

12 files changed

+18
-18
lines changed

src/data/examples/en/09_Simulate/06_Spirograph.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
let NUMSINES = 20; // how many of these things can we do at once?
1111
let sines = new Array(NUMSINES); // an array to hold all the current angles
1212
let rad; // an initial radius value for the central sine
13-
let i; // a counter letiable
13+
let i; // a counter variable
1414

1515
// play with these to get a sense of what's going on:
1616
let fund = 0.005; // the speed of the central sine

src/data/examples/en/09_Simulate/08_Spring.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ let M = 0.8, // Mass
1818
D = 0.92, // Damping
1919
R = 150; // Rest position
2020

21-
// Spring simulation letiables
21+
// Spring simulation variables
2222
let ps = R, // Position
2323
vs = 0.0, // Velocity
2424
as = 0, // Acceleration

src/data/examples/en/09_Simulate/09_Springs.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ function Spring (_x, _y, _s, _d, _m, _k_in, _others, _id) {
6262
this.rest_posx = _x; // Rest position X
6363
this.rest_posy = _y; // Rest position Y
6464

65-
// Spring simulation letiables
65+
// Spring simulation variables
6666
//float pos = 20.0; // Position
6767
this.velx = 0.0; // X Velocity
6868
this.vely = 0.0; // Y Velocity

src/data/examples/en/09_Simulate/11_SmokeParticleSystem.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
// texture for the particle
88
let particle_texture = null;
99

10-
// letiable holding our particle system
10+
// variable holding our particle system
1111
let ps = null;
1212

1313
function preload() {
@@ -79,8 +79,8 @@ let ParticleSystem = function(num, v, img_) {
7979
*/
8080
ParticleSystem.prototype.run = function() {
8181

82-
// cache length of the array we're going to loop into a letiable
83-
// You may see <letiable>.length in a for loop, from time to time but
82+
// cache length of the array we're going to loop into a variable
83+
// You may see <variable>.length in a for loop, from time to time but
8484
// we cache it here because otherwise the length is re-calculated for each iteration of a loop
8585
let len = this.particles.length;
8686

src/data/examples/es/09_Simulate/06_Spirograph.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
let NUMSINES = 20; // cuántas partículas podemos hacer al mismo tiempo?
1111
let sines = new Array(NUMSINES); // un arreglo para almacenar todos los ángulos actuales
1212
let rad; // un valor de radio inicial para la sinusoide central
13-
let i; // una letiable contador
13+
let i; // una variable contador
1414

1515
// juega con estos valores para entender lo que está pasando:
1616
let fund = 0.005; // la velocidad de la sinusoide central

src/data/examples/es/09_Simulate/08_Spring.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ let M = 0.8, // Masa
1818
D = 0.92, // Amortiguamiento
1919
R = 150; // Posición de reposo
2020

21-
// letiables de simulación de resorte
21+
// variables de simulación de resorte
2222
let ps = R, // Posición
2323
vs = 0.0, // Velocidad
2424
as = 0, // Aceleración

src/data/examples/es/09_Simulate/09_Springs.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ function Spring (_x, _y, _s, _d, _m, _k_in, _others, _id) {
6262
this.rest_posx = _x; // Rest position X
6363
this.rest_posy = _y; // Rest position Y
6464

65-
// Spring simulation letiables
65+
// Spring simulation variables
6666
//float pos = 20.0; // Position
6767
this.velx = 0.0; // X Velocity
6868
this.vely = 0.0; // Y Velocity

src/data/examples/es/09_Simulate/11_SmokeParticleSystem.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
// textura de la partícula
77
let particle_texture = null;
88

9-
// letiabla para almacenar el sistema de partículas
9+
// variabla para almacenar el sistema de partículas
1010
let ps = null;
1111

1212
function preload() {
@@ -78,8 +78,8 @@ let ParticleSystem = function(num, v, img_) {
7878
*/
7979
ParticleSystem.prototype.run = function() {
8080

81-
// guardar en una letiable el largo del arreglo sobre el que vamos a iterar
82-
// Puedes encontrar este largo con la sintaxis <letiable>.length dentro un bucle for
81+
// guardar en una variable el largo del arreglo sobre el que vamos a iterar
82+
// Puedes encontrar este largo con la sintaxis <variable>.length dentro un bucle for
8383
// pero lo guardamos acá porque en caso contrario, estaríamos recalculando el largo en cada iteración del bucle for
8484
let len = this.particles.length;
8585

src/data/examples/zh-Hans/09_Simulate/06_Spirograph.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
let NUMSINES = 20; // how many of these things can we do at once?
1111
let sines = new Array(NUMSINES); // an array to hold all the current angles
1212
let rad; // an initial radius value for the central sine
13-
let i; // a counter letiable
13+
let i; // a counter variable
1414

1515
// play with these to get a sense of what's going on:
1616
let fund = 0.005; // the speed of the central sine

src/data/examples/zh-Hans/09_Simulate/08_Spring.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ let M = 0.8, // Mass
1818
D = 0.92, // Damping
1919
R = 150; // Rest position
2020

21-
// Spring simulation letiables
21+
// Spring simulation variables
2222
let ps = R, // Position
2323
vs = 0.0, // Velocity
2424
as = 0, // Acceleration

0 commit comments

Comments
 (0)