summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorcostan <costan@google.com>2018-09-04 09:21:24 -0700
committerVictor Costan <pwnall@chromium.org>2018-09-04 10:36:18 -0700
commit9b44da73d9b1d839c437e3fdaaa14ea08260dce4 (patch)
tree40efcf4784d273c0d135f208f0821464aa09879c /include
parent0ef2310f67f0c0b4ba3e6ad86d8138440af30d67 (diff)
downloadleveldb-9b44da73d9b1d839c437e3fdaaa14ea08260dce4.tar.gz
Clarify comments for leveldb::Env file reading methods.
"Create a brand new [adjective] file" seems like the description for a method that will create a new file, but is used for methods that open existing files for read access. ------------- Created by MOE: https://github.com/google/moe MOE_MIGRATED_REVID=211468002
Diffstat (limited to 'include')
-rw-r--r--include/leveldb/env.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/include/leveldb/env.h b/include/leveldb/env.h
index 87dc06e..59e2a6f 100644
--- a/include/leveldb/env.h
+++ b/include/leveldb/env.h
@@ -45,7 +45,7 @@ class LEVELDB_EXPORT Env {
// The result of Default() belongs to leveldb and must never be deleted.
static Env* Default();
- // Create a brand new sequentially-readable file with the specified name.
+ // Create an object that sequentially reads the file with the specified name.
// On success, stores a pointer to the new file in *result and returns OK.
// On failure stores nullptr in *result and returns non-OK. If the file does
// not exist, returns a non-OK status. Implementations should return a
@@ -55,7 +55,7 @@ class LEVELDB_EXPORT Env {
virtual Status NewSequentialFile(const std::string& fname,
SequentialFile** result) = 0;
- // Create a brand new random access read-only file with the
+ // Create an object supporting random-access reads from the file with the
// specified name. On success, stores a pointer to the new file in
// *result and returns OK. On failure stores nullptr in *result and
// returns non-OK. If the file does not exist, returns a non-OK