system_allocator: Fix comments.

While reading code, some of the comments need fixing.

BUG=None
TEST=None

Change-Id: Iff9cd639f5e14512680475bcf9240c07551690a5
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/crosvm/+/3418634
Reviewed-by: Daniel Verkamp <dverkamp@chromium.org>
Tested-by: kokoro <noreply+kokoro@google.com>
Commit-Queue: Junichi Uekawa <uekawa@chromium.org>
This commit is contained in:
Junichi Uekawa 2022-01-27 17:30:18 +09:00 committed by Commit Bot
parent 0520a95161
commit d7cbca27e3

View file

@ -10,7 +10,7 @@ use crate::{Alloc, Error, Result};
/// Manages allocating system resources such as address space and interrupt numbers.
///
/// # Example - Use the `SystemAddress` builder.
/// # Example - Use the `SystemAllocator` builder.
///
/// ```
/// # use resources::{Alloc, MmioType, SystemAllocator};
@ -71,6 +71,8 @@ impl SystemAllocator {
/// * `high_size` - The size of high MMIO space.
/// * `low_base` - The starting address of low MMIO space.
/// * `low_size` - The size of low MMIO space.
/// * `platform_base` - The starting address of platform MMIO space.
/// * `platform_size` - The size of platform MMIO space.
/// * `first_irq` - The first irq number to give out.
fn new(
io_base: Option<u64>,