From a3edc4fcabf9ac4d75c6335a5bbfe5a5ea3e5abc Mon Sep 17 00:00:00 2001 From: Simon Lin Date: Thu, 6 Jan 2022 04:20:16 +0800 Subject: [PATCH] [flash] fix typo `initalized` (#7287) --- src/core/utils/flash.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/core/utils/flash.cpp b/src/core/utils/flash.cpp index 3e4558640..243d7d505 100644 --- a/src/core/utils/flash.cpp +++ b/src/core/utils/flash.cpp @@ -118,7 +118,7 @@ Error Flash::Get(uint16_t aKey, int aIndex, uint8_t *aValue, uint16_t *aValueLen { Error error = kErrorNotFound; uint16_t valueLength = 0; - int index = 0; // This must be initalized to 0. See [Note] in Delete(). + int index = 0; // This must be initialized to 0. See [Note] in Delete(). uint32_t offset; RecordHeader record; @@ -258,7 +258,7 @@ exit: Error Flash::Delete(uint16_t aKey, int aIndex) { Error error = kErrorNotFound; - int index = 0; // This must be initalized to 0. See [Note] below. + int index = 0; // This must be initialized to 0. See [Note] below. RecordHeader record; for (uint32_t offset = kSwapMarkerSize; offset < mSwapUsed; offset += record.GetSize())