Skip to content

Commit be6c708

Browse files
committed
doc: languages: rust: typo fixes
Fix various minor typos in the Rust documentation. Signed-off-by: David Brown <[email protected]>
1 parent efd15c8 commit be6c708

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

doc/develop/languages/rust/index.rst

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -25,14 +25,14 @@ the rust command needed to install the appropriate target support:
2525

2626
.. _rustup: https://rustup.rs/
2727

28-
.. code-block::
28+
.. code-block:: console
2929
3030
$ west build ...
3131
...
3232
error[E0463]: can't find crate for `core`
3333
|
3434
= note: the `thumbv7m-none-eabi` target may not be installed
35-
= help: consider downloading the target with `rustup target add thumb7m-none-eabi`
35+
= help: consider downloading the target with `rustup target add thumbv7m-none-eabi`
3636
3737
In this case, the given ``rustup`` command will install the needed target support. The target
3838
needed will depend on both the board selected, as well as certain configuration choices (such as
@@ -46,7 +46,7 @@ See :zephyr_file:`samples/rust` for examples of an application.
4646
CMake files
4747
-----------
4848

49-
The application should contain a :file:`CMakeFiles.txt`, similar to the following:
49+
The application should contain a :file:`CMakeLists.txt`, similar to the following:
5050

5151
.. code-block:: cmake
5252
@@ -72,7 +72,7 @@ you use crates that support building with no-std.
7272
Application
7373
-----------
7474

75-
The application source itself should live in file:`src/lib.rs`. A few things are needed. A minimal
75+
The application source itself should live in :file:`src/lib.rs`. A few things are needed. A minimal
7676
file would be:
7777

7878
.. code-block:: rust
@@ -128,7 +128,7 @@ For example:
128128
#[cfg(CONFIG_SCHED_DUMB)]
129129
one_declaration;
130130
131-
#[cfg(not(CONFIG_SCHED_DUMB)]
131+
#[cfg(not(CONFIG_SCHED_DUMB))]
132132
other_declaration;
133133
134134
Other Kconfig settings

0 commit comments

Comments
 (0)