Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[docs] fix typos in Doxygen documentation #9485

Merged
merged 1 commit into from
Oct 4, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
2 changes: 0 additions & 2 deletions include/openthread/crypto.h
Original file line number Diff line number Diff line change
Expand Up @@ -56,8 +56,6 @@ extern "C" {
*/

/**
* @struct otCryptoSha256Hash
*
* Represents a SHA-256 hash.
*
*/
Expand Down
2 changes: 1 addition & 1 deletion include/openthread/instance.h
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ extern "C" {
* @note This number versions both OpenThread platform and user APIs.
*
*/
#define OPENTHREAD_API_VERSION (361)
#define OPENTHREAD_API_VERSION (362)

/**
* @addtogroup api-instance
Expand Down
7 changes: 1 addition & 6 deletions include/openthread/joiner.h
Original file line number Diff line number Diff line change
Expand Up @@ -135,12 +135,7 @@ void otJoinerStop(otInstance *aInstance);
*
* @param[in] aInstance A pointer to an OpenThread instance.
*
* @retval OT_JOINER_STATE_IDLE
* @retval OT_JOINER_STATE_DISCOVER
* @retval OT_JOINER_STATE_CONNECT
* @retval OT_JOINER_STATE_CONNECTED
* @retval OT_JOINER_STATE_ENTRUST
* @retval OT_JOINER_STATE_JOINED
* @returns The joiner state.
*
*/
otJoinerState otJoinerGetState(otInstance *aInstance);
Expand Down
4 changes: 2 additions & 2 deletions include/openthread/nat64.h
Original file line number Diff line number Diff line change
Expand Up @@ -291,7 +291,7 @@ otNat64State otNat64GetPrefixManagerState(otInstance *aInstance);
* @sa otNat64GetPrefixManagerState
*
*/
void otNat64SetEnabled(otInstance *aInstance, bool aEnable);
void otNat64SetEnabled(otInstance *aInstance, bool aEnabled);

/**
* Allocate a new message buffer for sending an IPv4 message to the NAT64 translator.
Expand Down Expand Up @@ -374,7 +374,7 @@ typedef void (*otNat64ReceiveIp4Callback)(otMessage *aMessage, void *aContext);
* @param[in] aInstance A pointer to an OpenThread instance.
* @param[in] aCallback A pointer to a function that is called when an IPv4 datagram is received or
* NULL to disable the callback.
* @param[in] aCallbackContext A pointer to application-specific context.
* @param[in] aContext A pointer to application-specific context.
*
*/
void otNat64SetReceiveIp4Callback(otInstance *aInstance, otNat64ReceiveIp4Callback aCallback, void *aContext);
Expand Down
2 changes: 1 addition & 1 deletion include/openthread/netdata_publisher.h
Original file line number Diff line number Diff line change
Expand Up @@ -258,9 +258,9 @@ otError otNetDataPublishExternalRoute(otInstance *aInstance, const otExternalRou
* Data (monitoring the Network Data to determine when/if to add the prefix, depending on the number of similar
* prefixes present in the Network Data).
*
* @param[in] aInstance A pointer to an OpenThread instance.
* @param[in] aPrefix The previously published external route prefix to replace.
* @param[in] aConfig The external route config to publish.
* @param[in] aRequester The requester (`kFromUser` or `kFromRoutingManager` module).
*
* @retval OT_ERROR_NONE The external route is published successfully.
* @retval OT_ERROR_INVALID_ARGS The @p aConfig is not valid (bad prefix, invalid flag combinations, or not stable).
Expand Down
2 changes: 1 addition & 1 deletion include/openthread/thread_ftd.h
Original file line number Diff line number Diff line change
Expand Up @@ -913,7 +913,7 @@ bool otThreadIsRouterIdAllocated(otInstance *aInstance, uint8_t aRouterId);
* to get the value.
*
* @param[in] aInstance A pointer to an OpenThread instance.
* @param[in] aDesRloct16 The RLOC16 of destination.
* @param[in] aDestRloc16 The RLOC16 of destination.
* @param[out] aNextHopRloc16 A pointer to return RLOC16 of next hop, 0xfffe if no next hop.
* @param[out] aPathCost A pointer to return path cost towards destination.
*
Expand Down
4 changes: 2 additions & 2 deletions src/core/border_router/routing_manager.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -375,8 +375,8 @@ class RoutingManager : public InstanceLocator
*
* The favored NAT64 prefix can be discovered from infrastructure link or can be the local NAT64 prefix.
*
* @param[out] aPrefix A reference to output the favored prefix.
* @param[out] aPreference A reference to output the preference associated with the favored prefix.
* @param[out] aPrefix A reference to output the favored prefix.
* @param[out] aRoutePreference A reference to output the preference associated with the favored prefix.
*
* @retval kErrorInvalidState The Border Routing Manager is not initialized yet.
* @retval kErrorNone Successfully retrieved the NAT64 prefix.
Expand Down
2 changes: 1 addition & 1 deletion src/core/coap/coap.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -848,7 +848,7 @@ class CoapBase : public InstanceLocator, private NonCopyable
/**
* Sets the resource handler function.
*
* @param[in] aResourceHandler The resource handler function pointer.
* @param[in] aHandler The resource handler function pointer.
*
*/
void SetResourceHandler(ResourceHandler aHandler) { mResourceHandler = aHandler; }
Expand Down
2 changes: 1 addition & 1 deletion src/core/mac/mac_frame.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -387,7 +387,7 @@ class Frame : public otRadioFrame
* ACK. The Frame Pending and IE Present bits are not set.
*
* @param[in] aType Frame type.
* @param[in] aVerion Frame version.
* @param[in] aVersion Frame version.
* @param[in] aAddrs Frame source and destination addresses (each can be none, short, or extended).
* @param[in] aPanIds Source and destination PAN IDs.
* @param[in] aSecurityLevel Frame security level.
Expand Down
4 changes: 2 additions & 2 deletions src/core/meshcop/dataset.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -200,7 +200,7 @@ class Dataset
* MUST be used when Active Timestamp component is present in the Dataset, otherwise its behavior is
* undefined.
*
* @returns The Active Timestamp in the Dataset.
* @param[out] aTimestamp A reference to output the Active Timestamp in the Dataset.
*
*/
void GetActiveTimestamp(Timestamp &aTimestamp) const { aTimestamp.SetFromTimestamp(mActiveTimestamp); }
Expand Down Expand Up @@ -231,7 +231,7 @@ class Dataset
* MUST be used when Pending Timestamp component is present in the Dataset, otherwise its behavior
* is undefined.
*
* @returns The Pending Timestamp in the Dataset.
* @param[out] aTimestamp A reference to output the Pending Timestamp in the Dataset.
*
*/
void GetPendingTimestamp(Timestamp &aTimestamp) const { aTimestamp.SetFromTimestamp(mPendingTimestamp); }
Expand Down
2 changes: 1 addition & 1 deletion src/core/thread/network_diagnostic_tlvs.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -1105,7 +1105,7 @@ class MleCountersTlv : public Tlv, public TlvInfo<Tlv::kMleCounters>
/**
* Initializes the TLV.
*
* @param[in] aMleCounter The MLE counters to initialize the TLV with.
* @param[in] aMleCounters The MLE counters to initialize the TLV with.
*
*/
void Init(const Mle::Counters &aMleCounters);
Expand Down
2 changes: 1 addition & 1 deletion src/core/thread/router_table.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -381,7 +381,7 @@ class RouterTable : public InstanceLocator, private NonCopyable
/**
* Gets the allocated Router ID set.
*
* @returns The allocated Router ID set.
* @param[out] aRouterIdSet A reference to output the allocated Router ID set.
*
*/
void GetRouterIdSet(Mle::RouterIdSet &aRouterIdSet) const { return mRouterIdMap.GetAsRouterIdSet(aRouterIdSet); }
Expand Down
4 changes: 2 additions & 2 deletions src/core/utils/mesh_diag.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -93,9 +93,9 @@ class MeshDiag : public InstanceLocator
/**
* Iterates through the discovered IPv6 address of a router.
*
* @param[out] aIp6Address A reference to return the next IPv6 address (if any).
* @param[out] aAddress A reference to return the next IPv6 address (if any).
*
* @retval kErrorNone Successfully retrieved the next address. @p aIp6Address is updated.
* @retval kErrorNone Successfully retrieved the next address. @p aAddress is updated.
* @retval kErrorNotFound No more address. Reached the end of the list.
*
*/
Expand Down