Skip to content

Commit 2477068

Browse files
author
Schneider
committed
basic-string-class: fix typo
1 parent 9e966c6 commit 2477068

1 file changed

Lines changed: 5 additions & 5 deletions

File tree

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

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1744,7 +1744,7 @@ int main( )
17441744
str1_Iter--;
17451745
str1_Iter--;
17461746
cout << "The last character-letter of the string str1 is: " << *str1_Iter << endl;
1747-
cout << "The full orginal string str1 is: " << str1 << endl;
1747+
cout << "The full original string str1 is: " << str1 << endl;
17481748

17491749
// end used to test when an iterator has reached the end of its string
17501750
cout << "The string is now: ";
@@ -1771,7 +1771,7 @@ int main( )
17711771
17721772
```Output
17731773
The last character-letter of the string str1 is: t
1774-
The full orginal string str1 is: No way out.
1774+
The full original string str1 is: No way out.
17751775
The string is now: No way out.
17761776
The last character-letter of the modified str1 is now: T
17771777
The modified string str1 is now: No way ouT.
@@ -3011,7 +3011,7 @@ int main( )
30113011
cout << "The string with a character inserted from a range is: "
30123012
<< str7a << endl;
30133013

3014-
// The eigth member function inserts a number of
3014+
// The eighth member function inserts a number of
30153015
// characters at a specified position in the string
30163016
string str8 ( "ABCDHIJ" );
30173017
basic_string <char>::iterator str8_Iter = ( str8.begin ( ) + 4 );
@@ -4365,7 +4365,7 @@ int main( )
43654365
const char *cstr3b = "am";
43664366
indexCh3b = str3.rfind ( cstr3b , indexCh3a + 25 , 2 );
43674367
if ( indexCh3b != npos )
4368-
cout << "The index of the next occurrance of 'am' in "
4368+
cout << "The index of the next occurrence of 'am' in "
43694369
<< "str3 begins at: " << indexCh3b << endl << endl;
43704370
else
43714371
cout << "There is no next occurrence of 'am' in str3 ."
@@ -4411,7 +4411,7 @@ The substring 'imperfect' was not found in str2 .
44114411
44124412
The original string str3 is: It is a nice day. I am happy.
44134413
The index of the 1st element of 'nice' in str3 is: 8
4414-
The index of the next occurrance of 'am' in str3 begins at: 20
4414+
The index of the next occurrence of 'am' in str3 begins at: 20
44154415
44164416
The original string str4 is: This perfectly unclear.
44174417
The substring 'clear' was not found in str4 before the 15th position.

0 commit comments

Comments
 (0)