Skip to content

Commit 0f91ea2

Browse files
author
Amanda Butler
authored
Copy edit CallChainOfFunctionPointersWithContext.h
Make minor copy edits, mostly for typos.
1 parent 3cbe391 commit 0f91ea2

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

features/FEATURE_BLE/ble/CallChainOfFunctionPointersWithContext.h

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@
3030
/**
3131
* Function like object hosting a list of FunctionPointerWithContext.
3232
*
33-
* Upon call each FunctionPointerWithContext instance present in the object will
33+
* Upon call, each FunctionPointerWithContext instance present in the object will
3434
* be called in sequence with the initial parameters.
3535
*
3636
* It can be seen as a variation of the observer pattern this object being the
@@ -83,7 +83,7 @@ class CallChainOfFunctionPointersWithContext :
8383
public SafeBool<CallChainOfFunctionPointersWithContext<ContextType> > {
8484
public:
8585
/**
86-
* Alias of the FunctionPointerWithContext type this object can store
86+
* Alias of the FunctionPointerWithContext type this object can store.
8787
*/
8888
typedef FunctionPointerWithContext<ContextType> *pFunctionPointerWithContext_t;
8989

@@ -148,8 +148,8 @@ class CallChainOfFunctionPointersWithContext :
148148
*
149149
* @return true if a function pointer has been detached and false otherwise.
150150
*
151-
* @note It is safe to remove a function pointer while the chain is
152-
* being traversed by call(ContextType).
151+
* @note It is safe to remove a function pointer while
152+
* call(ContextType) is traversing the chain.
153153
*/
154154
bool detach(const FunctionPointerWithContext<ContextType> &toDetach)
155155
{
@@ -261,7 +261,7 @@ class CallChainOfFunctionPointersWithContext :
261261
}
262262

263263
/**
264-
* Test if the calchain is emtpy or not.
264+
* Test if the callchain is empty or not.
265265
*
266266
* @return true if the callchain is not empty and false otherwise.
267267
*
@@ -317,7 +317,7 @@ class CallChainOfFunctionPointersWithContext :
317317
* removed during the call() operation.
318318
*
319319
* @note It has to be mutable to accomodate the const version of call(). The
320-
* iterator doesn't leak outside the object therefore it remains seen as
320+
* iterator doesn't leak outside the object; therefore, it remains seen as
321321
* const from an external standpoint.
322322
*/
323323
mutable pFunctionPointerWithContext_t currentCalled;

0 commit comments

Comments
 (0)