diff --git a/README.md b/README.md index db71d9c..5fa2619 100644 --- a/README.md +++ b/README.md @@ -28,7 +28,7 @@ int main() { for (auto p = doc.paragraphs(); p.has_next() ; p.next()) { for (auto r = p.runs(); r.has_next(); r.next()) { - std::cout << r.text() << std::endl; + std::cout << r.get_text() << std::endl; } } } diff --git a/src/duckx.hpp b/src/duckx.hpp index c98f817..4a6bcfd 100644 --- a/src/duckx.hpp +++ b/src/duckx.hpp @@ -1,7 +1,7 @@ /* * Under MIT license * Author: Amir Mohamadi (@amiremohamadi) - * DuckX is a free library to work wirh docx files. + * DuckX is a free library to work with docx files. */ #ifndef DUCKX_H @@ -15,7 +15,7 @@ #include "zip.h" -// TODO: Use conatiner-iterator design pattern! +// TODO: Use container-iterator design pattern! namespace duckx { // Run contains runs in a paragraph @@ -123,7 +123,7 @@ namespace duckx { TableRow& rows(); }; - // Document conatins whole the docx file + // Document contains whole the docx file // and stores paragraphs class Document { private: