From 762faa79fc2e76f688351366d5c4296ef0c128d6 Mon Sep 17 00:00:00 2001 From: Emil Vardar Date: Tue, 11 Feb 2025 16:22:45 +0000 Subject: [PATCH] Update outdated comment. Bug: None No-Try: true Change-Id: I5289920a1b59c84333374abbb271332bd7e6fd8b Reviewed-on: https://webrtc-review.googlesource.com/c/src/+/374482 Commit-Queue: Jeremy Leconte Reviewed-by: Jeremy Leconte Reviewed-by: Mirko Bonadei Cr-Commit-Position: refs/heads/main@{#43879} --- rtc_base/system/file_wrapper.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rtc_base/system/file_wrapper.h b/rtc_base/system/file_wrapper.h index a1553ff2db..eafc685e27 100644 --- a/rtc_base/system/file_wrapper.h +++ b/rtc_base/system/file_wrapper.h @@ -87,7 +87,7 @@ class FileWrapper final { // Seek to given position. bool SeekTo(int64_t position); - // Returns the file size or -1 if a size could not be determined. + // Returns the file size or std::nullopt if the size could not be determined. // (A file size might not exists for non-seekable files or file-like // objects, for example /dev/tty on unix.) std::optional FileSize();