Skip to content
This repository
Browse code

Typos.

Summary:
As pointed out by orbitcowboy at
#6

Test Plan: No

Reviewers: jdelong, aalexandre

Reviewed By: jdelong

CC: folly@lists, bagashe

Differential Revision: https://phabricator.fb.com/D486754
  • Loading branch information...
commit f0ced414840d5c29e6ced3466004dc1a122b51c1 1 parent 8b71b71
tudor authored June 04, 2012 jdelong committed June 04, 2012
2  folly/AtomicHashArray-inl.h
@@ -252,7 +252,7 @@ create(size_t maxSize, const Config& c) {
252 252
    * constructor.)  This is in order to avoid needing to default
253 253
    * construct a bunch of value_type when we first start up: if you
254 254
    * have an expensive default constructor for the value type this can
255  
-   * noticably speed construction time for an AHA.
  255
+   * noticeably speed construction time for an AHA.
256 256
    */
257 257
   FOR_EACH_RANGE(i, 0, map->capacity_) {
258 258
     cellKeyPtr(map->cells_[i])->store(map->kEmptyKey_,
4  folly/FBString.h
@@ -1484,7 +1484,7 @@ class basic_fbstring {
1484 1484
   }
1485 1485
 
1486 1486
   // Replaces at most n1 chars of *this, starting with pos, with n2
1487  
-  // occurences of c
  1487
+  // occurrences of c
1488 1488
   //
1489 1489
   // consolidated with
1490 1490
   //
@@ -2224,7 +2224,7 @@ basic_fbstring<E1, T, A, S>::npos =
2224 2224
               static_cast<typename basic_fbstring<E1, T, A, S>::size_type>(-1);
2225 2225
 
2226 2226
 #ifndef _LIBSTDCXX_FBSTRING
2227  
-// basic_string compatiblity routines
  2227
+// basic_string compatibility routines
2228 2228
 
2229 2229
 template <typename E, class T, class A, class S>
2230 2230
 inline
2  folly/PackedSyncPtr.h
@@ -105,7 +105,7 @@ class PackedSyncPtr {
105 105
   reference operator*() const { return *get(); }
106 106
   reference operator[](std::ptrdiff_t i) const { return get()[i]; }
107 107
 
108  
-  // Syncronization (logically const, even though this mutates our
  108
+  // Synchronization (logically const, even though this mutates our
109 109
   // locked state: you can lock a const PackedSyncPtr<T> to read it).
110 110
   void lock() const { data_.lock(); }
111 111
   void unlock() const { data_.unlock(); }
2  folly/docs/AtomicHashMap.md
Source Rendered
@@ -26,7 +26,7 @@ compare-and-swap'ed.
26 26
 the approximate number of elements you'll be inserting into the map, you
27 27
 probably shouldn't use this class.
28 28
 
29  
-* Must manage syncronization externally in order to modify values in the map
  29
+* Must manage synchronization externally in order to modify values in the map
30 30
 after insertion.  Lock pools are a common way to do this, or you may
31 31
 consider using `folly::PackedSyncPtr<T>` as your `ValueT`.
32 32
 
2  folly/test/ConcurrentSkipListBenchmark.cpp
@@ -579,7 +579,7 @@ BENCHMARK_PARAM(BM_CSLMergeLookup,       1000000);
579 579
 BENCHMARK_DRAW_LINE();
580 580
 
581 581
 
582  
-// multi-thread benchmarking
  582
+// multithreaded benchmarking
583 583
 
584 584
 BENCHMARK_PARAM(BM_ContentionStdSet, 1024);
585 585
 BENCHMARK_PARAM(BM_ContentionCSL,    1024);
2  folly/test/PackedSyncPtrTest.cpp
@@ -111,7 +111,7 @@ TEST(PackedSyncPtr, Application) {
111 111
   }
112 112
 
113 113
   for (auto& kv : map) {
114  
-    // Make sure every thread succesfully inserted it's ID into every vec
  114
+    // Make sure every thread successfully inserted it's ID into every vec
115 115
     std::set<intptr_t> idsFound;
116 116
     for (auto& elem : kv.second) {
117 117
       EXPECT_TRUE(idsFound.insert(elem).second);  // check for dups
2  folly/test/ThreadCachedIntTest.cpp
@@ -155,7 +155,7 @@ std::atomic<int32_t> globalInt32Baseline(0);
155 155
 __thread int64_t global__thread64;
156 156
 __thread int32_t global__thread32;
157 157
 
158  
-// Alternate lock-free implementation.  Acheives about the same performance,
  158
+// Alternate lock-free implementation.  Achieves about the same performance,
159 159
 // but uses about 20x more memory than ThreadCachedInt with 24 threads.
160 160
 struct ShardedAtomicInt {
161 161
   static const int64_t kBuckets_ = 2048;

0 notes on commit f0ced41

Please sign in to comment.
Something went wrong with that request. Please try again.