summaryrefslogtreecommitdiff
path: root/util
diff options
context:
space:
mode:
authorDimitris Apostolou <dimitris.apostolou@icloud.com>2022-01-05 11:04:16 +0200
committerDimitris Apostolou <dimitris.apostolou@icloud.com>2022-01-05 11:04:16 +0200
commit0e8aa26c4e9325f04e186defca123f7d4837791f (patch)
tree8296434f162f31f4d1bac0924da1561e890a3347 /util
parent8f464e7f68fd9d50ed39b2866ef8dac9c837439d (diff)
downloadleveldb-0e8aa26c4e9325f04e186defca123f7d4837791f.tar.gz
Fix typos
Diffstat (limited to 'util')
-rw-r--r--util/env_posix.cc4
-rw-r--r--util/env_windows.cc2
2 files changed, 3 insertions, 3 deletions
diff --git a/util/env_posix.cc b/util/env_posix.cc
index 8b8d9c8..8405909 100644
--- a/util/env_posix.cc
+++ b/util/env_posix.cc
@@ -242,7 +242,7 @@ class PosixMmapReadableFile final : public RandomAccessFile {
// over the ownership of the region.
//
// |mmap_limiter| must outlive this instance. The caller must have already
- // aquired the right to use one mmap region, which will be released when this
+ // acquired the right to use one mmap region, which will be released when this
// instance is destroyed.
PosixMmapReadableFile(std::string filename, char* mmap_base, size_t length,
Limiter* mmap_limiter)
@@ -756,7 +756,7 @@ class PosixEnv : public Env {
// Instances are constructed on the thread calling Schedule() and used on the
// background thread.
//
- // This structure is thread-safe beacuse it is immutable.
+ // This structure is thread-safe because it is immutable.
struct BackgroundWorkItem {
explicit BackgroundWorkItem(void (*function)(void* arg), void* arg)
: function(function), arg(arg) {}
diff --git a/util/env_windows.cc b/util/env_windows.cc
index 9ffcd07..c6d439c 100644
--- a/util/env_windows.cc
+++ b/util/env_windows.cc
@@ -681,7 +681,7 @@ class WindowsEnv : public Env {
// Instances are constructed on the thread calling Schedule() and used on the
// background thread.
//
- // This structure is thread-safe beacuse it is immutable.
+ // This structure is thread-safe because it is immutable.
struct BackgroundWorkItem {
explicit BackgroundWorkItem(void (*function)(void* arg), void* arg)
: function(function), arg(arg) {}