Skip to content

Commit a084767

Browse files
author
MarcoFalke
committed
Merge #11155: Trivial: Documentation fixes for CVectorWriter ctors
37c4362 Trivial: Documentation fixes for CVectorWriter ctors (danra) Pull request description: Tree-SHA512: 13aef27f6b38dc276db6616d13e243a5413acf3a3ece5a52578c07b97a5bc9da337e7e230fcdb91727ec88b199844fd9aa3a88e7d96c911c119c91070a892ba1
2 parents 7fd49d0 + 37c4362 commit a084767

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/streams.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ class CVectorWriter
8282
* @param[in] nVersionIn Serialization Version (including any flags)
8383
* @param[in] vchDataIn Referenced byte vector to overwrite/append
8484
* @param[in] nPosIn Starting position. Vector index where writes should start. The vector will initially
85-
* grow as necessary to max(index, vec.size()). So to append, use vec.size().
85+
* grow as necessary to max(nPosIn, vec.size()). So to append, use vec.size().
8686
*/
8787
CVectorWriter(int nTypeIn, int nVersionIn, std::vector<unsigned char>& vchDataIn, size_t nPosIn) : nType(nTypeIn), nVersion(nVersionIn), vchData(vchDataIn), nPos(nPosIn)
8888
{
@@ -91,7 +91,7 @@ class CVectorWriter
9191
}
9292
/*
9393
* (other params same as above)
94-
* @param[in] args A list of items to serialize starting at nPos.
94+
* @param[in] args A list of items to serialize starting at nPosIn.
9595
*/
9696
template <typename... Args>
9797
CVectorWriter(int nTypeIn, int nVersionIn, std::vector<unsigned char>& vchDataIn, size_t nPosIn, Args&&... args) : CVectorWriter(nTypeIn, nVersionIn, vchDataIn, nPosIn)

0 commit comments

Comments
 (0)