Fixed documentation for used_size

This commit is contained in:
Arkadiy Paronyan 2019-01-08 12:59:29 +01:00 committed by GitHub
parent 7740f6b690
commit f45192b69d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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())
}