Skip to content

Commit 1a42043

Browse files
committed
Fix minor typos
1 parent e03bd3e commit 1a42043

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

include/swift/Runtime/Concurrent.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ template <class ElemTy> struct ConcurrentList {
4444
}
4545

4646
/// Remove all of the links in the chain. This method leaves
47-
/// the list at a usable state and new links can be added.
47+
/// the list at an usable state and new links can be added.
4848
/// Notice that this operation is non-concurrent because
4949
/// we have no way of ensuring that no one is currently
5050
/// traversing the list.
@@ -145,7 +145,7 @@ template <class KeyTy, class ValueTy> struct ConcurrentMapNode {
145145
/// The method findOrAllocateNode searches the binary tree in search of the
146146
/// exact Key value. If it finds an edge that points to NULL that should
147147
/// contain the value then it tries to compare and swap the new node into
148-
/// place. If it looses the race to a different thread it de-allocates
148+
/// place. If it loses the race to a different thread it de-allocates
149149
/// the node and starts the search again since the new node should
150150
/// be placed (or found) on the new link. See findOrAllocateNode for more
151151
/// details.
@@ -164,7 +164,7 @@ template <class KeyTy, class ValueTy> class ConcurrentMap {
164164
/// accelerating the search of the same value again and again.
165165
std::atomic<NodeTy *> LastSearch;
166166

167-
/// Search a for a node with key value \p. If the node does not exist then
167+
/// Search for a node with key value \p. If the node does not exist then
168168
/// allocate a new bucket and add it to the tree.
169169
ConcurrentList<ValueTy> &findOrAllocateNode(KeyTy Key) {
170170
// Try looking at the last node we searched.

0 commit comments

Comments
 (0)