Skip to content

Commit 2998488

Browse files
VizorColin Robertson
authored andcommitted
Corrected incorrect description (#226)
The description of "count" from basic_string::assign() was probably copypasted from basic_string::append(), but it's not clearly true (verified by test and documentation elsewhere - http://www.cplusplus.com/reference/string/string/assign/).
1 parent 96cdc2d commit 2998488

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/standard-library/basic-string-class.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -361,7 +361,7 @@ basic_string<CharType, Traits, Allocator>& assign(
361361
A pointer to the characters of the C-string to be assigned to the target string.
362362
363363
`count`
364-
The number of characters to be appended, at most, from the source string.
364+
The number of characters to be assigned, from the source string.
365365
366366
`str`
367367
The source string whose characters are to be assigned to the target string.

0 commit comments

Comments
 (0)