From db8a35a1b11e5f7ca93399a5ccea8f0fe7aacea9 Mon Sep 17 00:00:00 2001 From: Zach Reizner Date: Tue, 30 May 2017 11:25:05 -0700 Subject: [PATCH] sys_util: remove accidental HTML from doc comments For some reason, the angle brackets in the comments confused doc-tests such that they hung everytime `cargo test` was run on sys_util on my machine. My theory is that the angle brackets triggered some strange HTML behavior in `cargo test`. BUG=None TEST=cd sys_util; cargo test Change-Id: Iceb81e64aecc4cc2a9397f2d1af2e64aeb8e2b5e Reviewed-on: https://chromium-review.googlesource.com/518444 Commit-Ready: Zach Reizner Tested-by: Zach Reizner Reviewed-by: Dylan Reid --- sys_util/src/guest_memory.rs | 2 +- sys_util/src/mmap.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/sys_util/src/guest_memory.rs b/sys_util/src/guest_memory.rs index ae96eadb37..e9a33f6193 100644 --- a/sys_util/src/guest_memory.rs +++ b/sys_util/src/guest_memory.rs @@ -118,7 +118,7 @@ impl GuestMemory { } /// Writes a slice to guest memory at the specified guest address. - /// Returns Ok(). The number of bytes written can + /// Returns the number of bytes written. The number of bytes written can /// be less than the length of the slice if there isn't enough room in the /// memory region. /// diff --git a/sys_util/src/mmap.rs b/sys_util/src/mmap.rs index 57627f8644..732c4f0648 100644 --- a/sys_util/src/mmap.rs +++ b/sys_util/src/mmap.rs @@ -105,7 +105,7 @@ impl MemoryMapping { } /// Writes a slice to the memory region at the specified offset. - /// Returns Ok(). The number of bytes written can + /// Returns the number of bytes written. The number of bytes written can /// be less than the length of the slice if there isn't enough room in the /// memory region. ///