diff options
author | Michael Pratt <mpratt@google.com> | 2019-05-14 20:57:45 -0700 |
---|---|---|
committer | Shentubot <shentubot@google.com> | 2019-05-14 20:58:53 -0700 |
commit | dc4a042f3a6810f6d1d96eff9c40651621b4692b (patch) | |
tree | 6a71aa171faa38767316af05b1e3aaad1bb11ee3 /test | |
parent | dd153c014de69968dac96629e457ee17944e410e (diff) |
Update out of date comment
PiperOrigin-RevId: 248265524
Change-Id: Ib9082f08d24ba10535079cf89c714fb22a4fdf10
Diffstat (limited to 'test')
-rw-r--r-- | test/util/temp_path.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/test/util/temp_path.cc b/test/util/temp_path.cc index c5d8fc635..de7c04a6f 100644 --- a/test/util/temp_path.cc +++ b/test/util/temp_path.cc @@ -85,7 +85,7 @@ PosixErrorOr<TempPath> TempPath::CreateFileWith(absl::string_view const parent, absl::string_view const content, mode_t const mode) { return CreateIn(parent, [=](absl::string_view path) -> PosixError { - // SetContents will call open(O_WRONLY) with the given mode. If the + // CreateWithContents will call open(O_WRONLY) with the given mode. If the // mode is not user-writable, save/restore cannot preserve the fd. Hence // the little permission dance that's done here. auto res = CreateWithContents(path, content, mode | 0200); |