Commit 7c08a9b6 authored by Nerijus Bendžiūnas's avatar Nerijus Bendžiūnas Committed by Anas Nashif
Browse files

doc: fix FIXED_PARITION_ID typo



It seems flash_map.rst is the only place for this typo.

Signed-off-by: default avatarNerijus Bendžiūnas <nerijus.bendziunas@gmail.com>
parent a4d56e4f
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -76,7 +76,7 @@ nonvolatile storage API.

Numeric flash area ID is obtained by passing DTS node label to
:c:macro:`FIXED_PARTITION_ID()`; for example to obtain ID number
for ``slot0_partition``, user would invoke ``FIXED_PARITION_ID(slot0_partition)``.
for ``slot0_partition``, user would invoke ``FIXED_PARTITION_ID(slot0_partition)``.

All :c:macro:`FIXED_PARTITION_` macros take DTS node labels as partition
identifiers.
@@ -96,7 +96,7 @@ using :c:func:`flash_area_open` and DTS node label:
.. code-block:: c

   const struct flash_area *my_area;
   int err = flash_area_open(FIXED_PARITION_ID(slot0_partition), &my_area);
   int err = flash_area_open(FIXED_PARTITION_ID(slot0_partition), &my_area);

   if (err != 0) {
   	handle_the_error(err);