Fix typos
This commit is contained in:
parent
8f464e7f68
commit
0e8aa26c4e
@ -25,7 +25,7 @@ class SnapshotImpl : public Snapshot {
|
|||||||
friend class SnapshotList;
|
friend class SnapshotList;
|
||||||
|
|
||||||
// SnapshotImpl is kept in a doubly-linked circular list. The 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* prev_;
|
||||||
SnapshotImpl* next_;
|
SnapshotImpl* next_;
|
||||||
|
|
||||||
|
@ -242,7 +242,7 @@ class PosixMmapReadableFile final : public RandomAccessFile {
|
|||||||
// over the ownership of the region.
|
// over the ownership of the region.
|
||||||
//
|
//
|
||||||
// |mmap_limiter| must outlive this instance. The caller must have already
|
// |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.
|
// instance is destroyed.
|
||||||
PosixMmapReadableFile(std::string filename, char* mmap_base, size_t length,
|
PosixMmapReadableFile(std::string filename, char* mmap_base, size_t length,
|
||||||
Limiter* mmap_limiter)
|
Limiter* mmap_limiter)
|
||||||
@ -756,7 +756,7 @@ class PosixEnv : public Env {
|
|||||||
// Instances are constructed on the thread calling Schedule() and used on the
|
// Instances are constructed on the thread calling Schedule() and used on the
|
||||||
// background thread.
|
// background thread.
|
||||||
//
|
//
|
||||||
// This structure is thread-safe beacuse it is immutable.
|
// This structure is thread-safe because it is immutable.
|
||||||
struct BackgroundWorkItem {
|
struct BackgroundWorkItem {
|
||||||
explicit BackgroundWorkItem(void (*function)(void* arg), void* arg)
|
explicit BackgroundWorkItem(void (*function)(void* arg), void* arg)
|
||||||
: function(function), arg(arg) {}
|
: function(function), arg(arg) {}
|
||||||
|
@ -681,7 +681,7 @@ class WindowsEnv : public Env {
|
|||||||
// Instances are constructed on the thread calling Schedule() and used on the
|
// Instances are constructed on the thread calling Schedule() and used on the
|
||||||
// background thread.
|
// background thread.
|
||||||
//
|
//
|
||||||
// This structure is thread-safe beacuse it is immutable.
|
// This structure is thread-safe because it is immutable.
|
||||||
struct BackgroundWorkItem {
|
struct BackgroundWorkItem {
|
||||||
explicit BackgroundWorkItem(void (*function)(void* arg), void* arg)
|
explicit BackgroundWorkItem(void (*function)(void* arg), void* arg)
|
||||||
: function(function), arg(arg) {}
|
: function(function), arg(arg) {}
|
||||||
|
Loading…
Reference in New Issue
Block a user