From f7f9e64ed074f37a8d093451384918b9363b04f1 Mon Sep 17 00:00:00 2001 From: Faidon Liambotis Date: Tue, 10 May 2016 11:05:26 -0700 Subject: [PATCH] Fix a few typos all over the code Summary: These are pretty trivial. Debian's lint tool (lintian) warns about those in its verbose mode, and since we saw them when packaging for Debian, we thought of fixing them and forwarding them upstream. Closes https://github.com/facebook/folly/pull/345 Reviewed By: Orvid Differential Revision: D2769801 Pulled By: elliottneilclark fbshipit-source-id: ad37cc53792f21aae6558ba256f20cb56c6caab5 --- folly/Benchmark.h | 10 +++++----- folly/experimental/Bits.h | 2 +- folly/experimental/fibers/AddTasks.h | 4 ++-- folly/experimental/fibers/Baton.h | 4 ++-- folly/io/async/test/UndelayedDestruction.h | 2 +- 5 files changed, 11 insertions(+), 11 deletions(-) diff --git a/folly/Benchmark.h b/folly/Benchmark.h index fe4fc239..01299798 100644 --- a/folly/Benchmark.h +++ b/folly/Benchmark.h @@ -375,7 +375,7 @@ void doNotOptimizeAway(T&& datum) { BENCHMARK_NAMED_PARAM(name, param, param) /** - * Same as BENCHMARK_PARAM, but allows to return the actual number of + * Same as BENCHMARK_PARAM, but allows one to return the actual number of * iterations that have been run. */ #define BENCHMARK_PARAM_MULTI(name, param) \ @@ -415,7 +415,7 @@ void doNotOptimizeAway(T&& datum) { } /** - * Same as BENCHMARK_NAMED_PARAM, but allows to return the actual number + * Same as BENCHMARK_NAMED_PARAM, but allows one to return the actual number * of iterations that have been run. */ #define BENCHMARK_NAMED_PARAM_MULTI(name, param_name, ...) \ @@ -460,7 +460,7 @@ void doNotOptimizeAway(T&& datum) { __VA_ARGS__) /** - * Same as BENCHMARK_RELATIVE, but allows to return the actual number + * Same as BENCHMARK_RELATIVE, but allows one to return the actual number * of iterations that have been run. */ #define BENCHMARK_RELATIVE_MULTI(name, ...) \ @@ -477,7 +477,7 @@ void doNotOptimizeAway(T&& datum) { BENCHMARK_RELATIVE_NAMED_PARAM(name, param, param) /** - * Same as BENCHMARK_RELATIVE_PARAM, but allows to return the actual + * Same as BENCHMARK_RELATIVE_PARAM, but allows one to return the actual * number of iterations that have been run. */ #define BENCHMARK_RELATIVE_PARAM_MULTI(name, param) \ @@ -497,7 +497,7 @@ void doNotOptimizeAway(T&& datum) { } /** - * Same as BENCHMARK_RELATIVE_NAMED_PARAM, but allows to return the + * Same as BENCHMARK_RELATIVE_NAMED_PARAM, but allows one to return the * actual number of iterations that have been run. */ #define BENCHMARK_RELATIVE_NAMED_PARAM_MULTI(name, param_name, ...) \ diff --git a/folly/experimental/Bits.h b/folly/experimental/Bits.h index 50836ed8..61844e8e 100644 --- a/folly/experimental/Bits.h +++ b/folly/experimental/Bits.h @@ -65,7 +65,7 @@ struct BitsTraits, typename std::enable_if< } }; -// Special version that allows to disable address sanitizer on demand. +// Special version that allows one to disable address sanitizer on demand. template struct BitsTraits, typename std::enable_if< (std::is_integral::value)>::type> { diff --git a/folly/experimental/fibers/AddTasks.h b/folly/experimental/fibers/AddTasks.h index be4c25b1..1062b9b8 100644 --- a/folly/experimental/fibers/AddTasks.h +++ b/folly/experimental/fibers/AddTasks.h @@ -31,8 +31,8 @@ class TaskIterator; /** * Schedules several tasks and immediately returns an iterator, that - * allow to traverse tasks in the order of their completion. All results and - * exptions thrown are stored alongside with the task id and are + * allow one to traverse tasks in the order of their completion. All results + * and exceptions thrown are stored alongside with the task id and are * accessible via iterator. * * @param first Range of tasks to be scheduled diff --git a/folly/experimental/fibers/Baton.h b/folly/experimental/fibers/Baton.h index 5a9a6e01..c2ee7044 100644 --- a/folly/experimental/fibers/Baton.h +++ b/folly/experimental/fibers/Baton.h @@ -29,8 +29,8 @@ class FiberManager; /** * @class Baton * - * Primitive which allows to put current Fiber to sleep and wake it from another - * Fiber/thread. + * Primitive which allows one to put current Fiber to sleep and wake it from + * another Fiber/thread. */ class Baton { public: diff --git a/folly/io/async/test/UndelayedDestruction.h b/folly/io/async/test/UndelayedDestruction.h index 47a3dba8..ba1fe91e 100644 --- a/folly/io/async/test/UndelayedDestruction.h +++ b/folly/io/async/test/UndelayedDestruction.h @@ -66,7 +66,7 @@ class UndelayedDestruction : public TDD { * The caller is responsible for ensuring that the object is only destroyed * where it is safe to do so. (i.e., when the destructor guard count is 0). * - * The exact conditions for meeting this may be dependant upon your class + * The exact conditions for meeting this may be dependent upon your class * semantics. Typically you are only guaranteed that it is safe to destroy * the object directly from the event loop (e.g., directly from a * EventBase::LoopCallback), or when the event loop is stopped. -- 2.34.1