You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@mesos.apache.org by mp...@apache.org on 2017/02/07 02:28:31 UTC

[2/2] mesos git commit: Fixed a few typos in `os/windows/fd.hpp`.

Fixed a few typos in `os/windows/fd.hpp`.


Project: http://git-wip-us.apache.org/repos/asf/mesos/repo
Commit: http://git-wip-us.apache.org/repos/asf/mesos/commit/974581bd
Tree: http://git-wip-us.apache.org/repos/asf/mesos/tree/974581bd
Diff: http://git-wip-us.apache.org/repos/asf/mesos/diff/974581bd

Branch: refs/heads/master
Commit: 974581bdbb522e43ad07c6c78b6acb892d6c80a7
Parents: 7ff8cd4
Author: Michael Park <mp...@apache.org>
Authored: Mon Feb 6 16:18:39 2017 -0800
Committer: Michael Park <mp...@apache.org>
Committed: Mon Feb 6 17:42:12 2017 -0800

----------------------------------------------------------------------
 3rdparty/stout/include/stout/os/windows/fd.hpp | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/mesos/blob/974581bd/3rdparty/stout/include/stout/os/windows/fd.hpp
----------------------------------------------------------------------
diff --git a/3rdparty/stout/include/stout/os/windows/fd.hpp b/3rdparty/stout/include/stout/os/windows/fd.hpp
index b7aa92a..fddaaa5 100644
--- a/3rdparty/stout/include/stout/os/windows/fd.hpp
+++ b/3rdparty/stout/include/stout/os/windows/fd.hpp
@@ -68,7 +68,7 @@ public:
   // IMPORTANT: The `HANDLE` here is expected to be file handles. Specifically,
   //            `HANDLE`s returned by file API such as `CreateFile`. There are
   //            APIs that return `HANDLE`s with different error values, and
-  //            thereofre must be handled accordingly. For example, a thread API
+  //            therefore must be handled accordingly. For example, a thread API
   //            such as `CreateThread` returns `NULL` as the error value, rather
   //            than `INVALID_HANDLE_VALUE`.
   // TODO(mpark): Consider adding a second parameter which tells us what the
@@ -109,7 +109,7 @@ public:
     return socket_;
   }
 
-  // On Winodws, libevent's `evutil_socket_t` is set to `intptr_t`.
+  // On Windows, libevent's `evutil_socket_t` is set to `intptr_t`.
   operator intptr_t() const
   {
     CHECK_EQ(FD_SOCKET, type());
@@ -169,7 +169,7 @@ inline std::ostream& operator<<(std::ostream& stream, const WindowsFD& fd)
 inline bool operator<(const WindowsFD& left, const WindowsFD& right)
 {
   // In general, when compared against a `WindowsFD` in the `FD_CRT`, we map
-  // `INVALD_HANDLE_VALUE` and `INVALID_SOCKET` to `-1` before performing the
+  // `INVALID_HANDLE_VALUE` and `INVALID_SOCKET` to `-1` before performing the
   // comparison. The check for `< 0` followed by cast to `HANDLE` or `SOCKET` is
   // due to the fact that `HANDLE` and `SOCKET` are both unsigned.
   switch (left.type()) {
@@ -318,7 +318,7 @@ inline bool operator>=(const WindowsFD& left, int right)
 inline bool operator==(const WindowsFD& left, const WindowsFD& right)
 {
   // In general, when compared against a `WindowsFD` in the `FD_CRT`, we map
-  // `INVALD_HANDLE_VALUE` and `INVALID_SOCKET` to `-1` before performing the
+  // `INVALID_HANDLE_VALUE` and `INVALID_SOCKET` to `-1` before performing the
   // comparison. The check for `< 0` followed by cast to `HANDLE` or `SOCKET` is
   // due to the fact that `HANDLE` and `SOCKET` are both unsigned.
   switch (left.type()) {