Skip to content

Commit 66df2c1

Browse files
authored
chore: fix common typos in docs and comments (#5352)
## Changes ### Code Comments - js/js-export/ASTutils.js (L333): defintion definition - js/widgets/pitchslider.js (L41): Intializes Initializes ### Documentation - js/widgets/README.md: Intialize/initalize Initialize/initialize - Docs/guide-es/README.md: substitued/occurance substituted/occurrence - Docs/guide-ja/README.md: substitued/occurance substituted/occurrence - Docs/guide-zhCN/README.md: substitued/occurance substituted/occurrence - usermanual/.../widgets.html: substitued/occurance substituted/occurrence No functional changes; only spelling corrections in comments and documentation.
1 parent cea3db7 commit 66df2c1

File tree

6 files changed

+10
-10
lines changed

6 files changed

+10
-10
lines changed

Docs/guide-es/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -718,8 +718,8 @@ can be used inside the _Pitch-time Matrix_ block.
718718

719719
The _Set Drum_ block is used to map the enclosed pitches into drum
720720
sounds. Drum sounds are played in a monopitch using the specified drum
721-
sample. In the example above, a `kick drum` will be substitued for
722-
each occurance of a `Re` `4`.
721+
sample. In the example above, a `kick drum` will be substituted for
722+
each occurrence of a `Re` `4`.
723723

724724
![alt tag](./drum8.svg " ")
725725

Docs/guide-ja/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -818,8 +818,8 @@ can be used inside the *ピッチ・タイム行列* block.
818818

819819
The *Set ドラム* block is used to map the enclosed pitches into ドラム
820820
sounds. ドラム sounds are played in a monopitch using the specified ドラム
821-
sample. In the example above, a `kick ドラム` will be substitued for
822-
each occurance of a `` `4`.
821+
sample. In the example above, a `kick ドラム` will be substituted for
822+
each occurrence of a `` `4`.
823823

824824
![alt tag](./drum8.svg "ピッチ・ドラム・グラフ 1")
825825

Docs/guide-zhCN/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -755,8 +755,8 @@ notes.
755755

756756
The *Set Drum* block is used to map the enclosed pitches into drum
757757
sounds. Drum sounds are played in a monopitch using the specified drum
758-
sample. In the example above, a `kick drum` will be substitued for
759-
each occurance of a `Re` `4`.
758+
sample. In the example above, a `kick drum` will be substituted for
759+
each occurrence of a `Re` `4`.
760760

761761
*Set Drum* 块用于将封闭的音高映射到鼓中声音。
762762
鼓声使用指定的鼓在单声道中播放。

js/js-export/ASTutils.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -330,7 +330,7 @@ class ASTUtils {
330330
}
331331

332332
/**
333-
* Returns the Abstract Syntax Tree for the bare minimum method defintion code
333+
* Returns the Abstract Syntax Tree for the bare minimum method definition code
334334
*
335335
* @static
336336
* @param {String} methodName - method name

js/widgets/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,9 +21,9 @@ imported in `js/activity.js`.
2121
```
2222
This class will contain the code that defines the behavior of your widget.
2323

24-
3. **Intialize the Class**
24+
3. **Initialize the Class**
2525
Define the block that will be used to launch your widget in `js/blocks/WidgetBlocks.`
26-
Don't forget to initalize the class. (Look at the code towards the end of the file.)
26+
Don't forget to initialize the class. (Look at the code towards the end of the file.)
2727

2828
```javascript
2929
new UniqueClass().setup(activity);

js/widgets/pitchslider.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ class PitchSlider {
3838
}
3939

4040
/**
41-
* Intializes the pitch/slider
41+
* Initializes the pitch/slider
4242
* @returns {void}
4343
*/
4444
init(activity) {

0 commit comments

Comments
 (0)