diff --git a/docs/manual.html b/docs/manual.html index db0f38c2f..59fe2e250 100755 --- a/docs/manual.html +++ b/docs/manual.html @@ -1132,7 +1132,7 @@ boost::optional<boost::posix_time::ptime> creation_date() const; it will return an empty string. creation_date() returns a boost::posix_time::ptime object, representing the time when this torrent file was created. If there's no timestamp in the torrent file, this will return a date of january 1:st 1970.

-

cretor() returns the creator string in the torrent. If there is no creator string +

creator() returns the creator string in the torrent. If there is no creator string it will return an empty string.

diff --git a/docs/manual.rst b/docs/manual.rst index d976c9390..c836c339b 100755 --- a/docs/manual.rst +++ b/docs/manual.rst @@ -1064,7 +1064,7 @@ it will return an empty string. ``creation_date()`` returns a `boost::posix_time object, representing the time when this torrent file was created. If there's no timestamp in the torrent file, this will return a date of january 1:st 1970. -``cretor()`` returns the creator string in the torrent. If there is no creator string +``creator()`` returns the creator string in the torrent. If there is no creator string it will return an empty string. __ http://www.boost.org/libs/date_time/doc/class_ptime.html diff --git a/examples/dump_torrent.cpp b/examples/dump_torrent.cpp index 047d604b0..eee20475c 100755 --- a/examples/dump_torrent.cpp +++ b/examples/dump_torrent.cpp @@ -80,7 +80,7 @@ int main(int argc, char* argv[]) std::cout << "piece length: " << t.piece_length() << "\n"; std::cout << "info hash: " << t.info_hash() << "\n"; std::cout << "comment: " << t.comment() << "\n"; - std::cout << "created_by: " << t.creator() << "\n"; + std::cout << "created by: " << t.creator() << "\n"; std::cout << "files:\n"; for (torrent_info::file_iterator i = t.begin_files(); i != t.end_files(); ++i)