Skip to content

Commit e001c70

Browse files
authored
Fix typos (#180)
1 parent df6481f commit e001c70

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

lib/switchbot-device-wocurtain.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ class SwitchbotDeviceWoCurtain extends SwitchbotDevice {
4949

5050
/* ------------------------------------------------------------------
5151
* runToPos()
52-
* - run to the targe position
52+
* - run to the target position
5353
*
5454
* [Arguments]
5555
* - percent | number | Required | the percentage of target position
@@ -63,7 +63,7 @@ class SwitchbotDeviceWoCurtain extends SwitchbotDevice {
6363
return new Promise((resolve, reject) => {
6464
reject(
6565
new Error(
66-
"The type of target position percentage is incorrent: " +
66+
"The type of target position percentage is incorrect: " +
6767
typeof percent
6868
)
6969
);
@@ -75,7 +75,7 @@ class SwitchbotDeviceWoCurtain extends SwitchbotDevice {
7575
if (typeof mode != "number") {
7676
return new Promise((resolve, reject) => {
7777
reject(
78-
new Error("The type of running mode is incorrent: " + typeof mode)
78+
new Error("The type of running mode is incorrect: " + typeof mode)
7979
);
8080
});
8181
}

0 commit comments

Comments
 (0)