Skip to content

Commit 2e796d6

Browse files
chuangjingludpgeorge
authored andcommitted
docs,ports: Fix some comments and error messages with doubled-up words.
Signed-off-by: chuangjinglu <chuangjinglu@outlook.com>
1 parent 3de3821 commit 2e796d6

File tree

6 files changed

+7
-7
lines changed

6 files changed

+7
-7
lines changed

Diff for: docs/library/bluetooth.rst

+1-1
Original file line numberDiff line numberDiff line change
@@ -665,7 +665,7 @@ L2CAP connection-oriented-channels
665665

666666
Connect to a listening peer on the specified *psm* with local MTU set to *mtu*.
667667

668-
On successful connection, the the ``_IRQ_L2CAP_CONNECT`` event will be
668+
On successful connection, the ``_IRQ_L2CAP_CONNECT`` event will be
669669
raised, allowing the client to obtain the CID and the local and remote (peer) MTU.
670670

671671
An unsuccessful connection will raise the ``_IRQ_L2CAP_DISCONNECT`` event

Diff for: docs/library/machine.TimerWiPy.rst

+1-1
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ Methods
7171

7272
Otherwise, a TimerChannel object is initialized and returned.
7373

74-
The operating mode is is the one configured to the Timer object that was used to
74+
The operating mode is the one configured to the Timer object that was used to
7575
create the channel.
7676

7777
- ``channel`` if the width of the timer is 16-bit, then must be either ``TIMER.A``, ``TIMER.B``.

Diff for: docs/library/pyb.Timer.rst

+1-1
Original file line numberDiff line numberDiff line change
@@ -163,7 +163,7 @@ Methods
163163
- ``callback`` - as per TimerChannel.callback()
164164

165165
- ``pin`` None (the default) or a Pin object. If specified (and not None)
166-
this will cause the alternate function of the the indicated pin
166+
this will cause the alternate function of the indicated pin
167167
to be configured for this timer channel. An error will be raised if
168168
the pin doesn't support any alternate functions for this timer channel.
169169

Diff for: docs/reference/manifest.rst

+1-1
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ re-flashing the entire firmware. However, it can still be useful to
2626
selectively freeze some rarely-changing dependencies (such as third-party
2727
libraries).
2828

29-
The way to list the Python files to be be frozen into the firmware is via
29+
The way to list the Python files to be frozen into the firmware is via
3030
a "manifest", which is a Python file that will be interpreted by the build
3131
process. Typically you would write a manifest file as part of a board
3232
definition, but you can also write a stand-alone manifest file and use it with

Diff for: ports/cc3200/FreeRTOS/Source/tasks.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -1671,7 +1671,7 @@ static void prvAddNewTaskToReadyList( TCB_t *pxNewTCB )
16711671
if( listIS_CONTAINED_WITHIN( &xPendingReadyList, &( pxTCB->xEventListItem ) ) == pdFALSE )
16721672
{
16731673
/* Is it in the suspended list because it is in the Suspended
1674-
state, or because is is blocked with no timeout? */
1674+
state, or because it is blocked with no timeout? */
16751675
if( listIS_CONTAINED_WITHIN( NULL, &( pxTCB->xEventListItem ) ) != pdFALSE )
16761676
{
16771677
xReturn = pdTRUE;

Diff for: ports/stm32/timer.c

+2-2
Original file line numberDiff line numberDiff line change
@@ -1089,7 +1089,7 @@ static MP_DEFINE_CONST_FUN_OBJ_1(pyb_timer_deinit_obj, pyb_timer_deinit);
10891089
/// - `callback` - as per TimerChannel.callback()
10901090
///
10911091
/// - `pin` None (the default) or a Pin object. If specified (and not None)
1092-
/// this will cause the alternate function of the the indicated pin
1092+
/// this will cause the alternate function of the indicated pin
10931093
/// to be configured for this timer channel. An error will be raised if
10941094
/// the pin doesn't support any alternate functions for this timer channel.
10951095
///
@@ -1197,7 +1197,7 @@ static mp_obj_t pyb_timer_channel(size_t n_args, const mp_obj_t *pos_args, mp_ma
11971197
mp_obj_t pin_obj = args[2].u_obj;
11981198
if (pin_obj != mp_const_none) {
11991199
if (!mp_obj_is_type(pin_obj, &pin_type)) {
1200-
mp_raise_ValueError(MP_ERROR_TEXT("pin argument needs to be be a Pin type"));
1200+
mp_raise_ValueError(MP_ERROR_TEXT("pin argument needs to be a Pin type"));
12011201
}
12021202
const machine_pin_obj_t *pin = MP_OBJ_TO_PTR(pin_obj);
12031203
const pin_af_obj_t *af = pin_find_af(pin, AF_FN_TIM, self->tim_id);

0 commit comments

Comments
 (0)