aboutsummaryrefslogtreecommitdiffstats
path: root/src/alloc
diff options
context:
space:
mode:
authorlloyd <[email protected]>2012-04-09 23:31:53 +0000
committerlloyd <[email protected]>2012-04-09 23:31:53 +0000
commit4d3857119ad0bc7d231b5c0812c07d964f68398f (patch)
tree80cc64d3aec10934bd9420be89e781d90bce303a /src/alloc
parentcc041b2a855331b33a6458377498625b05f076bb (diff)
The comments incorrectly described end as returning the last element,
rather than one past the end. Reported by Stuart Maclean on the mailing list.
Diffstat (limited to 'src/alloc')
-rw-r--r--src/alloc/secmem.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/alloc/secmem.h b/src/alloc/secmem.h
index 6c8a75c44..2552343d6 100644
--- a/src/alloc/secmem.h
+++ b/src/alloc/secmem.h
@@ -59,14 +59,14 @@ class MemoryRegion
const T* begin() const { return buf; }
/**
- * Get a pointer to the last element in the buffer.
- * @return pointer to the last element in the buffer
+ * Get a pointer to one past the last element in the buffer.
+ * @return pointer to one past the last element in the buffer
*/
T* end() { return (buf + size()); }
/**
- * Get a constant pointer to the last element in the buffer.
- * @return constant pointer to the last element in the buffer
+ * Get a const pointer to one past the last element in the buffer.
+ * @return const pointer to one past the last element in the buffer
*/
const T* end() const { return (buf + size()); }