summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVictor Costan <pwnall@chromium.org>2022-01-08 02:55:46 +0000
committerVictor Costan <pwnall@chromium.org>2022-01-08 02:55:46 +0000
commitc8b708d496090c04433b68233b6d4ccb30b8aea6 (patch)
tree7cbc20cf9a947322ff0a798259ae3a9296e8b132
parent639195221c0255fd96635ed10225e30518c580a7 (diff)
parent0e8aa26c4e9325f04e186defca123f7d4837791f (diff)
downloadleveldb-c8b708d496090c04433b68233b6d4ccb30b8aea6.tar.gz
Merge pull request #967 from rex4539:typos
PiperOrigin-RevId: 420403341
-rw-r--r--db/snapshot.h2
-rw-r--r--util/env_posix.cc4
-rw-r--r--util/env_windows.cc2
3 files changed, 4 insertions, 4 deletions
diff --git a/db/snapshot.h b/db/snapshot.h
index 9f1d664..817bb7b 100644
--- a/db/snapshot.h
+++ b/db/snapshot.h
@@ -25,7 +25,7 @@ class SnapshotImpl : public Snapshot {
friend class SnapshotList;
// SnapshotImpl is kept in a doubly-linked circular list. The SnapshotList
- // implementation operates on the next/previous fields direcly.
+ // implementation operates on the next/previous fields directly.
SnapshotImpl* prev_;
SnapshotImpl* next_;
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) {}