From 77ee1f02aa8d892b530c5fc125931eae7c7efa27 Mon Sep 17 00:00:00 2001 From: Nikolai Kondrashov Date: Sat, 28 Aug 2021 20:44:21 +0300 Subject: [PATCH] doc: Fix a few typos in docs/comments/messages Fix two typos in documentation, one in a sample's comment, and one in a sample's console message. Found while learning Zephyr and exploring the sources. Signed-off-by: Nikolai Kondrashov --- doc/guides/dts/intro.rst | 2 +- include/console/console.h | 2 +- samples/bluetooth/peripheral_hids/prj.conf | 2 +- samples/subsys/settings/src/main.c | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/doc/guides/dts/intro.rst b/doc/guides/dts/intro.rst index 0ae2c8490b7..65623b6aa40 100644 --- a/doc/guides/dts/intro.rst +++ b/doc/guides/dts/intro.rst @@ -442,7 +442,7 @@ Additional notes on the above: values as *node identifiers*. Node identifiers are covered in more detail in :ref:`dt-from-c`. -- Array and similar type property values can be split several ``<>`` +- Array and similar type property values can be split into several ``<>`` blocks, like this: .. code-block:: none diff --git a/include/console/console.h b/include/console/console.h index 4c689d6ed0d..6b863edd214 100644 --- a/include/console/console.h +++ b/include/console/console.h @@ -57,7 +57,7 @@ ssize_t console_write(void *dummy, const void *buf, size_t size); * Return next input character from console. If no characters available, * this function will block. This function is similar to ANSI C * getchar() function and is intended to ease porting of existing - * software. Before this function can be used, console_getchar_init() + * software. Before this function can be used, console_init() * should be called once. This function is incompatible with native * Zephyr callback-based console input processing, shell subsystem, * or console_getline(). diff --git a/samples/bluetooth/peripheral_hids/prj.conf b/samples/bluetooth/peripheral_hids/prj.conf index bf0c5165042..017564c7b27 100644 --- a/samples/bluetooth/peripheral_hids/prj.conf +++ b/samples/bluetooth/peripheral_hids/prj.conf @@ -1,4 +1,4 @@ -# Incresed stack due to settings API usage +# Increased stack due to settings API usage CONFIG_SYSTEM_WORKQUEUE_STACK_SIZE=2048 CONFIG_BT=y diff --git a/samples/subsys/settings/src/main.c b/samples/subsys/settings/src/main.c index 78ec9c2b512..26d25f5887a 100644 --- a/samples/subsys/settings/src/main.c +++ b/samples/subsys/settings/src/main.c @@ -439,7 +439,7 @@ static void example_initialization(void) if ((rc != 0) && (rc != -ENOENT)) { printk("can't delete config file%d\n", rc); } else { - printk("FS initiqalized: OK\n"); + printk("FS initialized: OK\n"); } } #endif