diff options
author | Dylan Reid <dgreid@chromium.org> | 2018-07-04 00:48:47 -0700 |
---|---|---|
committer | chrome-bot <chrome-bot@chromium.org> | 2018-09-10 17:17:36 -0700 |
commit | bc8d9059abb23e8d4ca48662dcec454a03f5099d (patch) | |
tree | 4aef5614428d84fda65927994641b0babf0ab628 /resources | |
parent | 67afe44f80936615ff87648e32ca59d1cdc3826d (diff) | |
download | crosvm-bc8d9059abb23e8d4ca48662dcec454a03f5099d.tar crosvm-bc8d9059abb23e8d4ca48662dcec454a03f5099d.tar.gz crosvm-bc8d9059abb23e8d4ca48662dcec454a03f5099d.tar.bz2 crosvm-bc8d9059abb23e8d4ca48662dcec454a03f5099d.tar.lz crosvm-bc8d9059abb23e8d4ca48662dcec454a03f5099d.tar.xz crosvm-bc8d9059abb23e8d4ca48662dcec454a03f5099d.tar.zst crosvm-bc8d9059abb23e8d4ca48662dcec454a03f5099d.zip |
resources: fix allocator doc tests
Change-Id: I5a9b7460fc798d9abf1ad1f452233fe76c449b29 Signed-off-by: Daniel Verkamp <dverkamp@chromium.org> Reviewed-on: https://chromium-review.googlesource.com/1208151 Reviewed-by: Dylan Reid <dgreid@chromium.org>
Diffstat (limited to 'resources')
-rw-r--r-- | resources/src/system_allocator.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/resources/src/system_allocator.rs b/resources/src/system_allocator.rs index 7c406c9..4ca04ae 100644 --- a/resources/src/system_allocator.rs +++ b/resources/src/system_allocator.rs @@ -11,12 +11,12 @@ use sys_util::pagesize; /// # Example - Use the `SystemAddress` builder. /// /// ``` -/// # use sys_util::AddressRanges; +/// # use resources::AddressRanges; /// if let Some(mut a) = AddressRanges::new() /// .add_io_addresses(0x1000, 0x10000) /// .add_device_addresses(0x10000000, 0x10000000) /// .add_mmio_addresses(0x30000000, 0x10000) -/// .create_allocator(5) { +/// .create_allocator(5, false) { /// assert_eq!(a.allocate_irq(), Some(5)); /// assert_eq!(a.allocate_irq(), Some(6)); /// assert_eq!(a.allocate_device_addresses(0x100), Some(0x10000000)); |