Skip to content

Commit bc4bdb0

Browse files
authored
[wpilib] Use misspell to find more spelling errors (NFC) (#2679)
1 parent 6f96186 commit bc4bdb0

File tree

2 files changed

+14
-14
lines changed

2 files changed

+14
-14
lines changed

include/frc2/command/button/Button.h

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ class Button : public Trigger {
8686

8787
/**
8888
* Binds a command to be started repeatedly while the button is pressed, and
89-
* cancelled when it is released. Takes a raw pointer, and so is non-owning;
89+
* canceled when it is released. Takes a raw pointer, and so is non-owning;
9090
* users are responsible for the lifespan of the command.
9191
*
9292
* @param command The command to bind.
@@ -97,7 +97,7 @@ class Button : public Trigger {
9797

9898
/**
9999
* Binds a command to be started repeatedly while the button is pressed, and
100-
* cancelled when it is released. Transfers command ownership to the button
100+
* canceled when it is released. Transfers command ownership to the button
101101
* scheduler, so the user does not have to worry about lifespan - rvalue refs
102102
* will be *moved*, lvalue refs will be *copied.*
103103
*
@@ -131,7 +131,7 @@ class Button : public Trigger {
131131
wpi::ArrayRef<Subsystem*> requirements = {});
132132

133133
/**
134-
* Binds a command to be started when the button is pressed, and cancelled
134+
* Binds a command to be started when the button is pressed, and canceled
135135
* when it is released. Takes a raw pointer, and so is non-owning; users are
136136
* responsible for the lifespan of the command.
137137
*
@@ -142,7 +142,7 @@ class Button : public Trigger {
142142
Button WhenHeld(Command* command, bool interruptible = true);
143143

144144
/**
145-
* Binds a command to be started when the button is pressed, and cancelled
145+
* Binds a command to be started when the button is pressed, and canceled
146146
* when it is released. Transfers command ownership to the button scheduler,
147147
* so the user does not have to worry about lifespan - rvalue refs will be
148148
* *moved*, lvalue refs will be *copied.*
@@ -205,7 +205,7 @@ class Button : public Trigger {
205205
wpi::ArrayRef<Subsystem*> requirements = {});
206206

207207
/**
208-
* Binds a command to start when the button is pressed, and be cancelled when
208+
* Binds a command to start when the button is pressed, and be canceled when
209209
* it is pressed again. Takes a raw pointer, and so is non-owning; users are
210210
* responsible for the lifespan of the command.
211211
*
@@ -216,7 +216,7 @@ class Button : public Trigger {
216216
Button ToggleWhenPressed(Command* command, bool interruptible = true);
217217

218218
/**
219-
* Binds a command to start when the button is pressed, and be cancelled when
219+
* Binds a command to start when the button is pressed, and be canceled when
220220
* it is pessed again. Transfers command ownership to the button scheduler,
221221
* so the user does not have to worry about lifespan - rvalue refs will be
222222
* *moved*, lvalue refs will be *copied.*
@@ -233,7 +233,7 @@ class Button : public Trigger {
233233
}
234234

235235
/**
236-
* Binds a command to be cancelled when the button is pressed. Takes a
236+
* Binds a command to be canceled when the button is pressed. Takes a
237237
* raw pointer, and so is non-owning; users are responsible for the lifespan
238238
* and scheduling of the command.
239239
*

include/frc2/command/button/Trigger.h

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@ class Trigger {
108108

109109
/**
110110
* Binds a command to be started repeatedly while the trigger is active, and
111-
* cancelled when it becomes inactive. Takes a raw pointer, and so is
111+
* canceled when it becomes inactive. Takes a raw pointer, and so is
112112
* non-owning; users are responsible for the lifespan of the command.
113113
*
114114
* @param command The command to bind.
@@ -119,7 +119,7 @@ class Trigger {
119119

120120
/**
121121
* Binds a command to be started repeatedly while the trigger is active, and
122-
* cancelled when it becomes inactive. Transfers command ownership to the
122+
* canceled when it becomes inactive. Transfers command ownership to the
123123
* button scheduler, so the user does not have to worry about lifespan -
124124
* rvalue refs will be *moved*, lvalue refs will be *copied.*
125125
*
@@ -168,7 +168,7 @@ class Trigger {
168168

169169
/**
170170
* Binds a command to be started when the trigger becomes active, and
171-
* cancelled when it becomes inactive. Takes a raw pointer, and so is
171+
* canceled when it becomes inactive. Takes a raw pointer, and so is
172172
* non-owning; users are responsible for the lifespan of the command.
173173
*
174174
* @param command The command to bind.
@@ -179,7 +179,7 @@ class Trigger {
179179

180180
/**
181181
* Binds a command to be started when the trigger becomes active, and
182-
* cancelled when it becomes inactive. Transfers command ownership to the
182+
* canceled when it becomes inactive. Transfers command ownership to the
183183
* button scheduler, so the user does not have to worry about lifespan -
184184
* rvalue refs will be *moved*, lvalue refs will be *copied.*
185185
*
@@ -267,7 +267,7 @@ class Trigger {
267267
wpi::ArrayRef<Subsystem*> requirements = {});
268268

269269
/**
270-
* Binds a command to start when the trigger becomes active, and be cancelled
270+
* Binds a command to start when the trigger becomes active, and be canceled
271271
* when it again becomes active. Takes a raw pointer, and so is non-owning;
272272
* users are responsible for the lifespan of the command.
273273
*
@@ -278,7 +278,7 @@ class Trigger {
278278
Trigger ToggleWhenActive(Command* command, bool interruptible = true);
279279

280280
/**
281-
* Binds a command to start when the trigger becomes active, and be cancelled
281+
* Binds a command to start when the trigger becomes active, and be canceled
282282
* when it again becomes active. Transfers command ownership to the button
283283
* scheduler, so the user does not have to worry about lifespan - rvalue refs
284284
* will be *moved*, lvalue refs will be *copied.*
@@ -311,7 +311,7 @@ class Trigger {
311311
}
312312

313313
/**
314-
* Binds a command to be cancelled when the trigger becomes active. Takes a
314+
* Binds a command to be canceled when the trigger becomes active. Takes a
315315
* raw pointer, and so is non-owning; users are responsible for the lifespan
316316
* and scheduling of the command.
317317
*

0 commit comments

Comments
 (0)