Skip to content

Commit 3784f36

Browse files
committed
Docs: Correct odd use of "herited" word.
1 parent 2f0ecc3 commit 3784f36

File tree

3 files changed

+12
-12
lines changed

3 files changed

+12
-12
lines changed

libxml++/io/outputbuffer.h

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -26,15 +26,15 @@ namespace xmlpp
2626

2727
/** Base class for xmlOutputBuffer wrapper
2828
*
29-
* It can be herited to create a new output buffer.
30-
* A child class has to override do_write, and eventually
31-
* do_close if some actions are required before buffer closing.
29+
* It can be derived from to create a new output buffer.
30+
* A child class has to override do_write(), and possibly
31+
* do_close() if some actions are required before buffer closing.
3232
*/
3333
class OutputBuffer: public NonCopyable
3434
{
3535
public:
3636
/**
37-
* @param encoding The encoding herited class wait for in do_write. If
37+
* @param encoding The encoding that the derived class waits for in do_write. If
3838
* not provided, UTF-8 will be sent to do_write.
3939
*
4040
* @warning The encoding is done by libxml. As a consequence, libxml must
@@ -60,12 +60,12 @@ namespace xmlpp
6060
* @param buffer The datas encoded in the charset given to the constructor
6161
* @param len Buffer length
6262
*
63-
* This function MUST be overriden in herited classes.
63+
* This function MUST be overriden in derived classes.
6464
*/
6565
virtual bool do_write(const char * buffer, int len) = 0;
6666

6767
/** Function called before closing the buffer.
68-
* Herited classes should override it if some actions are required before
68+
* Derived classes should override it if some actions are required before
6969
* closing the buffer, instead of doing them in the destructor.
7070
*/
7171
virtual bool do_close();

libxml++/io/parserinputbuffer.h

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -24,9 +24,9 @@ namespace xmlpp
2424

2525
/** Base class for xmlParserInputBuffer wrapper
2626
*
27-
* It can be herited to create a new output buffer.
28-
* A child class has to override do_write, and eventually
29-
* do_close if some actions are required before buffer closing.
27+
* It can be derived from to create a new output buffer.
28+
* A child class has to override do_write(), and possibly
29+
* do_close() if some actions are required before buffer closing.
3030
*/
3131
class ParserInputBuffer: public NonCopyable
3232
{
@@ -52,12 +52,12 @@ namespace xmlpp
5252
* @param len bytes to read
5353
* @return Number of bytes read
5454
*
55-
* This function MUST be overriden in herited classes.
55+
* This function MUST be overriden in derived classes.
5656
*/
5757
virtual int do_read(char * buffer, int len) = 0;
5858

5959
/** Function called before closing the buffer.
60-
* Herited classes should override it if some actions are required before
60+
* Derived classes should override it if some actions are required before
6161
* closing the buffer, instead of doing them in the destructor.
6262
*/
6363
virtual bool do_close();

libxml++/noncopyable.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ namespace xmlpp
1212
{
1313

1414
/**
15-
* Herited by classes which cannot be copied.
15+
* A base for classes which cannot be copied.
1616
*/
1717
class NonCopyable
1818
{

0 commit comments

Comments
 (0)