fix typos
authorTudor Bosman <tudorb@fb.com>
Tue, 5 Feb 2013 21:12:26 +0000 (13:12 -0800)
committerJordan DeLong <jdelong@fb.com>
Tue, 19 Mar 2013 00:05:21 +0000 (17:05 -0700)
Test Plan: async_io_test

Reviewed By: lucian@fb.com

FB internal diff: D699175

folly/Exception.h
folly/experimental/io/AsyncIO.h
folly/experimental/io/test/AsyncIOTest.cpp

index 5820f68b58dd23399c70aa2a815aac146de3d245..5549c4bdcdf83900ce96f34362e8c2125aac6016 100644 (file)
@@ -54,7 +54,7 @@ inline void checkKernelError(ssize_t ret, const char* msg) {
   }
 }
 
-// Check a traditional Uinx return code (-1 and sets errno on error), throw
+// Check a traditional Unix return code (-1 and sets errno on error), throw
 // on error.
 inline void checkUnixError(ssize_t ret, const char* msg) {
   if (UNLIKELY(ret == -1)) {
index 81ed94dcc727b83338782489b398fc1688ee6456..4abd12e4ebbbf398885cfb9ed5a1f259fc627506 100644 (file)
@@ -44,7 +44,7 @@ class AsyncIO : private boost::noncopyable {
   };
 
   /**
-   * Create an AsyncIO context capacble of holding at most 'capacity' pending
+   * Create an AsyncIO context capable of holding at most 'capacity' pending
    * requests at the same time.  As requests complete, others can be scheduled,
    * as long as this limit is not exceeded.
    *
@@ -53,7 +53,7 @@ class AsyncIO : private boost::noncopyable {
    *
    * If pollMode is POLLABLE, pollFd() will return a file descriptor that
    * can be passed to poll / epoll / select and will become readable when
-   * any IOs on this AioReader have completed.  If you do this, you must use
+   * any IOs on this AsyncIO have completed.  If you do this, you must use
    * pollCompleted() instead of wait() -- do not read from the pollFd()
    * file descriptor directly.
    */
index 77595c66be7b3aa1d3b9c30c0275ddb6319ffc09..c8601309b30b4dab48292f427e6af87bb566a599 100644 (file)
@@ -114,13 +114,13 @@ TemporaryFile::~TemporaryFile() {
   }
 }
 
-TemporaryFile thisBinary(6 << 20);  // 6MiB
+TemporaryFile tempFile(6 << 20);  // 6MiB
 
 void testReadsSerially(const std::vector<TestSpec>& specs,
                        AsyncIO::PollMode pollMode) {
   AsyncIO aioReader(1, pollMode);
   AsyncIO::Op op;
-  int fd = ::open(thisBinary.path().c_str(), O_DIRECT | O_RDONLY);
+  int fd = ::open(tempFile.path().c_str(), O_DIRECT | O_RDONLY);
   PCHECK(fd != -1);
   SCOPE_EXIT {
     ::close(fd);
@@ -147,7 +147,7 @@ void testReadsParallel(const std::vector<TestSpec>& specs,
   std::unique_ptr<AsyncIO::Op[]> ops(new AsyncIO::Op[specs.size()]);
   std::vector<std::unique_ptr<char[]>> bufs(specs.size());
 
-  int fd = ::open(thisBinary.path().c_str(), O_DIRECT | O_RDONLY);
+  int fd = ::open(tempFile.path().c_str(), O_DIRECT | O_RDONLY);
   PCHECK(fd != -1);
   SCOPE_EXIT {
     ::close(fd);
@@ -269,7 +269,7 @@ TEST(AsyncIO, ManyAsyncDataPollable) {
 TEST(AsyncIO, NonBlockingWait) {
   AsyncIO aioReader(1, AsyncIO::NOT_POLLABLE);
   AsyncIO::Op op;
-  int fd = ::open(thisBinary.path().c_str(), O_DIRECT | O_RDONLY);
+  int fd = ::open(tempFile.path().c_str(), O_DIRECT | O_RDONLY);
   PCHECK(fd != -1);
   SCOPE_EXIT {
     ::close(fd);