Skip to content

Commit

Permalink
Trivial: Documentation fixes for CVectorWriter ctors
Browse files Browse the repository at this point in the history
  • Loading branch information
danra authored Aug 26, 2017
1 parent 07c92b9 commit 37c4362
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/streams.h
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ class CVectorWriter
* @param[in] nVersionIn Serialization Version (including any flags)
* @param[in] vchDataIn Referenced byte vector to overwrite/append
* @param[in] nPosIn Starting position. Vector index where writes should start. The vector will initially
* grow as necessary to max(index, vec.size()). So to append, use vec.size().
* grow as necessary to max(nPosIn, vec.size()). So to append, use vec.size().
*/
CVectorWriter(int nTypeIn, int nVersionIn, std::vector<unsigned char>& vchDataIn, size_t nPosIn) : nType(nTypeIn), nVersion(nVersionIn), vchData(vchDataIn), nPos(nPosIn)
{
Expand All @@ -91,7 +91,7 @@ class CVectorWriter
}
/*
* (other params same as above)
* @param[in] args A list of items to serialize starting at nPos.
* @param[in] args A list of items to serialize starting at nPosIn.
*/
template <typename... Args>
CVectorWriter(int nTypeIn, int nVersionIn, std::vector<unsigned char>& vchDataIn, size_t nPosIn, Args&&... args) : CVectorWriter(nTypeIn, nVersionIn, vchDataIn, nPosIn)
Expand Down

0 comments on commit 37c4362

Please sign in to comment.