Skip to content

Commit 198cb82

Browse files
authored
Merge pull request #1017 from luzpaz/typos-xmltest
fix typos in xmltest.cpp
2 parents c6ab6d7 + 008e329 commit 198cb82

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

xmltest.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1005,7 +1005,7 @@ int main( int argc, const char ** argv )
10051005
FILE* fp1 = fopen("resources/out/printer_1.xml", "w");
10061006
XMLPrinter printer(fp1);
10071007

1008-
printer.PushDeclaration("version = '1.0' enconding = 'utf-8'");
1008+
printer.PushDeclaration("version = '1.0' encoding = 'utf-8'");
10091009

10101010
printer.OpenElement("foo");
10111011
printer.PushAttribute("attrib-text", "text");
@@ -1096,7 +1096,7 @@ int main( int argc, const char ** argv )
10961096

10971097
const XMLDeclaration* declaration = cdoc.FirstChild()->ToDeclaration();
10981098
const char* declaration_value = declaration->Value();
1099-
XMLTest("PushDeclaration() test", "version = '1.0' enconding = 'utf-8'", declaration_value);
1099+
XMLTest("PushDeclaration() test", "version = '1.0' encoding = 'utf-8'", declaration_value);
11001100
}
11011101
}
11021102

@@ -2639,7 +2639,7 @@ int main( int argc, const char ** argv )
26392639
"<?xml version=\"1.0\"?>\n" // 2 DecL
26402640
"<root>\r\n" // 3 Element
26412641
"\n" // 4
2642-
"text contining new line \n" // 5 Text
2642+
"text containing new line \n" // 5 Text
26432643
" and also containing crlf \r\n" // 6
26442644
"<sub><![CDATA[\n" // 7 Element Text
26452645
"cdata containing new line \n" // 8

0 commit comments

Comments
 (0)