summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorLinus Färnstrand <linus@mullvad.net>2017-10-27 22:09:25 +0200
committerLinus Färnstrand <linus@mullvad.net>2017-10-27 22:09:25 +0200
commit7cce6e4f1f3d3b088ae383673881067f90b09443 (patch)
treed5dc489b8d3360bafcaa7b6eae1bd59e0be5f749
parent7a107efcf97dfb5c35dc11c0f4511f869e2b3de1 (diff)
downloadmullvadvpn-7cce6e4f1f3d3b088ae383673881067f90b09443.tar.xz
mullvadvpn-7cce6e4f1f3d3b088ae383673881067f90b09443.zip
Correct documentation grammar
-rw-r--r--mullvad-daemon/src/bin/problem-report.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/mullvad-daemon/src/bin/problem-report.rs b/mullvad-daemon/src/bin/problem-report.rs
index 841d5afd57..8ecae0a0e5 100644
--- a/mullvad-daemon/src/bin/problem-report.rs
+++ b/mullvad-daemon/src/bin/problem-report.rs
@@ -180,7 +180,7 @@ impl fmt::Display for ProblemReport {
}
/// Helper to lossily read a file to a `String`. If the file size exceeds the given `max_bytes`,
-/// only the last `max_bytes` of the file is read.
+/// only the last `max_bytes` bytes of the file are read.
fn read_file_lossy(path: &Path, max_bytes: usize) -> io::Result<String> {
let mut file = File::open(path)?;
let file_size = file.metadata()?.len();