Skip to content

Commit 31657ad

Browse files
committed
Add spec
1 parent 496df61 commit 31657ad

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

ostd/src/boot/memory_region.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -283,7 +283,6 @@ impl<const LEN: usize> MemoryRegionArray<LEN> {
283283
regions: [MemoryRegion::bad(); LEN],
284284
count: 0,
285285
};
286-
287286
ret
288287
}
289288

@@ -298,7 +297,7 @@ impl<const LEN: usize> MemoryRegionArray<LEN> {
298297
!old(self)@.full(),
299298
ensures
300299
self.inv(),
301-
//self@ == old(self)@.push(region@),
300+
self@ == old(self)@.push(region@),
302301
ret.is_ok(),
303302
)]
304303
pub fn push(&mut self, region: MemoryRegion) -> Result<(), &'static str> {

0 commit comments

Comments
 (0)