Fixed documentation for used_size (#156)

This commit is contained in:
Arkadiy Paronyan 2019-01-08 18:16:49 +03:00 committed by Sergei Pepyakin
parent 7740f6b690
commit 073e4e7f1f
1 changed files with 1 additions and 1 deletions

View File

@ -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())
}