Skip to content

Commit 1e47e12

Browse files
committed
Merge pull request #614 from tracicot/runtime_typos
fix comment typos
2 parents 606356c + 270e018 commit 1e47e12

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

include/swift/Runtime/Concurrent.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -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)