diff --git a/STYLE_GUIDE.md b/STYLE_GUIDE.md index 51d4696c7..e18168f3c 100644 --- a/STYLE_GUIDE.md +++ b/STYLE_GUIDE.md @@ -173,7 +173,7 @@ ## Standards -- OpenThread uses and enfores both Python 2 and Python 3. Support for Python 2 is a result of the fact that some current Linux distributions and Macs are still using 2.x as default. +- OpenThread uses and enforces both Python 2 and Python 3. Support for Python 2 is a result of the fact that some current Linux distributions and Macs are still using 2.x as default. ## Conventions and Best Practices diff --git a/include/openthread/platform/radio.h b/include/openthread/platform/radio.h index 0d827e616..af157925b 100644 --- a/include/openthread/platform/radio.h +++ b/include/openthread/platform/radio.h @@ -328,7 +328,7 @@ otError otPlatRadioClearSrcMatchShortEntry(otInstance *aInstance, const uint16_t * Remove an extended address from the source address match table. * * @param[in] aInstance The OpenThread instance structure. - * @param[in] aExtAddress The extended address to be removed stoerd in little-endian byte order. + * @param[in] aExtAddress The extended address to be removed stored in little-endian byte order. * * @retval OT_ERROR_NONE Successfully removed the extended address from the source match table. * @retval OT_ERROR_NO_ADDRESS The extended address is not in source address match table. diff --git a/src/core/meshcop/dataset_manager.cpp b/src/core/meshcop/dataset_manager.cpp index 501284197..4456569b4 100644 --- a/src/core/meshcop/dataset_manager.cpp +++ b/src/core/meshcop/dataset_manager.cpp @@ -62,11 +62,11 @@ namespace ot { namespace MeshCoP { DatasetManager::DatasetManager(ThreadNetif &aThreadNetif, const Tlv::Type aType, const char *aUriSet, - const char *aUriGet, Timer::Handler aTimerHander): + const char *aUriGet, Timer::Handler aTimerHandler): ThreadNetifLocator(aThreadNetif), mLocal(aThreadNetif.GetInstance(), aType), mNetwork(aType), - mTimer(aThreadNetif.GetInstance(), aTimerHander, this), + mTimer(aThreadNetif.GetInstance(), aTimerHandler, this), mUriSet(aUriSet), mUriGet(aUriGet) { diff --git a/src/core/meshcop/dataset_manager.hpp b/src/core/meshcop/dataset_manager.hpp index e5b8bf47f..5dd4dd62a 100644 --- a/src/core/meshcop/dataset_manager.hpp +++ b/src/core/meshcop/dataset_manager.hpp @@ -131,7 +131,7 @@ protected: * */ DatasetManager(ThreadNetif &aThreadNetif, const Tlv::Type aType, const char *aUriSet, const char *aUriGet, - TimerMilli::Handler aTimerHander); + TimerMilli::Handler aTimerHandler); /** * This method restores the Operational Dataset from non-volatile memory. diff --git a/src/core/net/dhcp6_client.hpp b/src/core/net/dhcp6_client.hpp index 4c6919089..c63590c9f 100644 --- a/src/core/net/dhcp6_client.hpp +++ b/src/core/net/dhcp6_client.hpp @@ -182,7 +182,7 @@ public: /** * This method update addresses that shall be automatically created using DHCP. * - * @param[in] aInstance A pointer to openThread instance. + * @param[in] aInstance A pointer to OpenThread instance. * @param[inout] aAddresses A pointer to an array containing addresses created by this module. * @param[in] aNumAddresses The number of elements in aAddresses array. * @param[in] aContext A pointer to IID creator-specific context data. diff --git a/src/core/utils/slaac_address.hpp b/src/core/utils/slaac_address.hpp index e1816f7ac..771410f1c 100644 --- a/src/core/utils/slaac_address.hpp +++ b/src/core/utils/slaac_address.hpp @@ -72,7 +72,7 @@ public: /** * This function update addresses that shall be automatically created using SLAAC. * - * @param[in] aInstance A pointer to openThread instance. + * @param[in] aInstance A pointer to OpenThread instance. * @param[inout] aAddresses A pointer to an array containing addresses created by this module. * @param[in] aNumAddresses The number of elements in aAddresses array. * @param[in] aIidCreator A pointer to function that will be used to create IID for IPv6 addresses.