Skip to content

Commit

Permalink
Merge pull request #47 from SuperWig/patch
Browse files Browse the repository at this point in the history
Fix README and typos
  • Loading branch information
amiremohamadi authored Oct 29, 2019
2 parents 5fe8f46 + b969c04 commit 95ca2c0
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
}
}
Expand Down
6 changes: 3 additions & 3 deletions src/duckx.hpp
Original file line number Diff line number Diff line change
@@ -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
Expand All @@ -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
Expand Down Expand Up @@ -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:
Expand Down

0 comments on commit 95ca2c0

Please sign in to comment.