Skip to content

Commit 083a62f

Browse files
GordonGordon
authored andcommitted
CP013: Add minor fixes based on feedback.
1 parent a6c395a commit 083a62f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

affinity/cpp-20/d1436r0.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,7 @@ numa_executor exec;
114114
std::vector<std::unique_ptr<float[SIZE]>> data{};
115115
data.reserve(N);
116116
117-
// Require the NUMA executor to bind it's allocation of memory to the underlying
117+
// Require the NUMA executor to bind its allocation of memory to the underlying
118118
// memory resources in a scatter patter.
119119
auto affinityExec = std::execution::require(exec,
120120
bulk_execution_affinity.scatter);
@@ -125,7 +125,7 @@ affinityExec.bulk_execute([&](size_t id) {
125125
data[id] = std::make_unique<float>(); }, N, sharedFactory);
126126
127127
// Execute a for_each using the same executor so that each unique_ptr in the
128-
// vector maintains it's locality.
128+
// vector maintains its locality.
129129
std::for_each(std::execution::par.on(affinityExec), std::begin(data),
130130
std::end(data), [=](float &value) { do_something(value): });
131131
```

0 commit comments

Comments
 (0)