Fix minor typos in docs and comments.

This commit is contained in:
Nathan Hartman 2019-09-29 12:53:39 -06:00 committed by Gregory Nutt
parent e1d262e5d9
commit 664e8a1410
17 changed files with 21 additions and 21 deletions

View File

@ -842,7 +842,7 @@
(2014-2-20). (2014-2-20).
* nshlib/Kconfig: Use CONFIG_DEFAULT_SMALL in selecting default * nshlib/Kconfig: Use CONFIG_DEFAULT_SMALL in selecting default
settings (2014-2-20). settings (2014-2-20).
* nshlib/nsh_telnetd.c: Use strncpy vs strcpy to avoid overruning the * nshlib/nsh_telnetd.c: Use strncpy vs strcpy to avoid overrunning the
username and password buffers. From Bertold Van den Bergh (2014-2-22). username and password buffers. From Bertold Van den Bergh (2014-2-22).
* nshlib/Kconfig, nsh_proccmds.c: If the CPU load feature and the procfs * nshlib/Kconfig, nsh_proccmds.c: If the CPU load feature and the procfs
features are enabled, then show CPU load used by each thread in the features are enabled, then show CPU load used by each thread in the

View File

@ -241,7 +241,7 @@ void CNxString::setText(FAR const nxwidget_char_t *text, int nchars)
/** /**
* Set the text in the string. * Set the text in the string.
* *
* @param text Character to to use as the new data for this string. * @param text Character to use as the new data for this string.
*/ */
void CNxString::setText(const nxwidget_char_t letter) void CNxString::setText(const nxwidget_char_t letter)

View File

@ -133,7 +133,7 @@ void CText::setText(FAR const char *text)
/** /**
* Set the text in the string. * Set the text in the string.
* *
* @param text Character to to use as the new data for this string. * @param text Character to use as the new data for this string.
*/ */
void CText::setText(const nxwidget_char_t text) void CText::setText(const nxwidget_char_t text)

View File

@ -135,7 +135,7 @@ CNxTerm::CNxTerm(CTaskbar *taskbar, CApplicationWindow *window)
m_taskbar = taskbar; m_taskbar = taskbar;
m_window = window; m_window = window;
// The NxTerm is not runing // The NxTerm is not running
m_pid = -1; m_pid = -1;
m_nxterm = 0; m_nxterm = 0;

View File

@ -355,7 +355,7 @@ static bool createCalibration(void)
return false; return false;
} }
// Call StartWindowFactory::create to to create the start window application // Call StartWindowFactory::create to create the start window application
printf("createCalibration: Creating CCalibration\n"); printf("createCalibration: Creating CCalibration\n");
NxWM::IApplication *calibration = factory->create(); NxWM::IApplication *calibration = factory->create();

View File

@ -540,7 +540,7 @@ void trv_color_free(struct trv_palette_s *pinfo)
/**************************************************************************** /****************************************************************************
* Name: trv_color_rgb2pixel * Name: trv_color_rgb2pixel
* Description: Map a RGB triplet into the corresponding pixel. The * Description: Map a RGB triplet into the corresponding pixel. The
* value range of ech RGB value is assume to lie within 0 through * value range of each RGB value is assumed to lie within 0 through
* TRV_PIXEL_MAX. * TRV_PIXEL_MAX.
****************************************************************************/ ****************************************************************************/

View File

@ -44,7 +44,7 @@
/**************************************************************************** /****************************************************************************
* Name: wld_rgb2pixel * Name: wld_rgb2pixel
* Description: Map a RGB triplet into the corresponding pixel. The * Description: Map a RGB triplet into the corresponding pixel. The
* value range of ech RGB value is assume to lie within 0 through * value range of each RGB value is assumed to lie within 0 through
* TRV_PIXEL_MAX. * TRV_PIXEL_MAX.
****************************************************************************/ ****************************************************************************/

View File

@ -37,9 +37,9 @@ Build instuctions
Then you can use xmfmk to create the Makefile and build the tool: Then you can use xmfmk to create the Makefile and build the tool:
7. cd apps/graphics/traveler/tools/tcledit 7. cd apps/graphics/traveler/tools/tcledit
8. Review Imakefile. You will probabaly to to change the APPDIR and TOPDIR paths 8. Review Imakefile. You will probabaly need to change the APPDIR and
a minimum. These are the paths to where you have clones the apps/ repository TOPDIR paths at a minimum. These are the paths to where you have
and the nuttx/ repositories, respectively. cloned the apps/ repository and the nuttx/ repositories, respectively.
9. xmfmk 9. xmfmk
10a. make tcledit 10a. make tcledit

View File

@ -509,7 +509,7 @@ void CClock::update(void)
pos.y = CONFIG_TWM4NX_CLOCK_VSPACING; pos.y = CONFIG_TWM4NX_CLOCK_VSPACING;
// Then show each segment LCD // Then show each segment LCD
// There might be a more efficient way to to this than to erase the entire // There might be a more efficient way to do this than to erase the entire
// SLCD on each update. // SLCD on each update.
for (int i = 0; i < CLOCK_NDIGITS; i++) for (int i = 0; i < CLOCK_NDIGITS; i++)

View File

@ -293,7 +293,7 @@ bool CIconWidget::initialize(FAR CWindow *parent,
image->setRaisesEvents(true); image->setRaisesEvents(true);
image->setDraggable(true); image->setDraggable(true);
// Add the CIconImage to to the containing widget // Add the CIconImage to the containing widget
image->addWidgetEventHandler(this); image->addWidgetEventHandler(this);
addWidget(image); addWidget(image);
@ -332,7 +332,7 @@ bool CIconWidget::initialize(FAR CWindow *parent,
topLabel->setRaisesEvents(true); topLabel->setRaisesEvents(true);
topLabel->setDraggable(true); topLabel->setDraggable(true);
// Add the top label to to the containing widget // Add the top label to the containing widget
topLabel->addWidgetEventHandler(this); topLabel->addWidgetEventHandler(this);
addWidget(topLabel); addWidget(topLabel);
@ -378,7 +378,7 @@ bool CIconWidget::initialize(FAR CWindow *parent,
bottomLabel->setRaisesEvents(true); bottomLabel->setRaisesEvents(true);
bottomLabel->setDraggable(true); bottomLabel->setDraggable(true);
// Add the top label to to the containing widget // Add the top label to the containing widget
bottomLabel->addWidgetEventHandler(this); bottomLabel->addWidgetEventHandler(this);
addWidget(bottomLabel); addWidget(bottomLabel);

View File

@ -281,7 +281,7 @@ namespace NXWidgets
/** /**
* Set the 8-bit C-string text in the string. * Set the 8-bit C-string text in the string.
* *
* @param text Character to to use as the new data for this string. * @param text Character to use as the new data for this string.
*/ */
void setText(const nxwidget_char_t text); void setText(const nxwidget_char_t text);

View File

@ -171,7 +171,7 @@ namespace NXWidgets
/** /**
* Set the text in the string. * Set the text in the string.
* *
* @param text Character to to use as the new data for this string. * @param text Character to use as the new data for this string.
*/ */
virtual void setText(const nxwidget_char_t text); virtual void setText(const nxwidget_char_t text);

View File

@ -290,7 +290,7 @@ static inline void dhcpd_arpupdate(FAR uint8_t *ipaddr, FAR uint8_t *hwaddr)
{ {
struct sockaddr_in inaddr; struct sockaddr_in inaddr;
/* Put the protocol address in a standard form. ipaddr is assume to be in /* Put the protocol address in a standard form. ipaddr is assumed to be in
* network order by the memcpy. * network order by the memcpy.
*/ */

View File

@ -329,7 +329,7 @@ FAR struct ftpc_dirlist_s *ftpc_listdir(SESSION handle,
int tmpret = ftpc_cmd(session, "CWD %s", session->currdir); int tmpret = ftpc_cmd(session, "CWD %s", session->currdir);
if (tmpret != OK) if (tmpret != OK)
{ {
nerr("ERROR: CWD back to to %s failed\n", session->currdir); nerr("ERROR: CWD back to %s failed\n", session->currdir);
} }
} }

View File

@ -559,7 +559,7 @@ ssize_t zm_remwrite(int fd, FAR const uint8_t *buffer, size_t buflen);
* necessary. * necessary.
* *
* NOTE: Not re-entrant. CR-LF sequences that span buffer boundaries are * NOTE: Not re-entrant. CR-LF sequences that span buffer boundaries are
* not guaranteed to to be handled correctly. * not guaranteed to be handled correctly.
* *
****************************************************************************/ ****************************************************************************/

View File

@ -476,7 +476,7 @@ static int zms_zrinit(FAR struct zm_state_s *pzm)
} }
#endif #endif
/* Otherwise, we have to to ZCRCW */ /* Otherwise, we have to do ZCRCW */
else else
{ {

View File

@ -343,7 +343,7 @@ int zm_putc(int fd, uint8_t ch)
* necessary. * necessary.
* *
* NOTE: Not re-entrant. CR-LF sequences that span buffer boundaries are * NOTE: Not re-entrant. CR-LF sequences that span buffer boundaries are
* not guaranteed to to be handled correctly. * not guaranteed to be handled correctly.
* *
****************************************************************************/ ****************************************************************************/