Fixed documentation for used_size (#156)
This commit is contained in:
parent
7740f6b690
commit
073e4e7f1f
|
@ -184,7 +184,7 @@ impl MemoryInstance {
|
|||
}
|
||||
|
||||
/// Returns current used memory size in bytes.
|
||||
/// This is the highest memory address that had been written to.
|
||||
/// This is one more than the highest memory address that had been written to.
|
||||
pub fn used_size(&self) -> Bytes {
|
||||
Bytes(self.buffer.borrow().len())
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue