Skip to content

Commit 6f5f778

Browse files
emilmelnikovdanpovey
authored andcommitted
[doc] Fix I/O documentation example (kaldi-asr#2468)
ReadBasicType/WriteBasicType examples should accept iostream as a first argument.
1 parent fd545bb commit 6f5f778

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/doc/io.dox

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -73,10 +73,10 @@ namespace kaldi {
7373
\code
7474
// we suppose that class_member_ is of type int32.
7575
void SomeKaldiClass::Read(std::istream &is, bool binary) {
76-
ReadBasicType(binary, &class_member_);
76+
ReadBasicType(is, binary, &class_member_);
7777
}
78-
void SomeKaldiClass::Write(std::ostream &is, bool binary) const {
79-
WriteBasicType(binary, class_member_);
78+
void SomeKaldiClass::Write(std::ostream &os, bool binary) const {
79+
WriteBasicType(os, binary, class_member_);
8080
}
8181
\endcode
8282
We have assumed that \c class_member_ is of type int32, which is a type of known

0 commit comments

Comments
 (0)