提交 c88dec20 编写于 作者: Y Yu Yang

Fix typo

上级 a6d4a31d
...@@ -82,7 +82,7 @@ namespace paddle { ...@@ -82,7 +82,7 @@ namespace paddle {
class Error { class Error {
public: public:
/** /**
* Construct an no-error value. * Construct a no-error value.
*/ */
Error() {} Error() {}
...@@ -100,7 +100,7 @@ public: ...@@ -100,7 +100,7 @@ public:
} }
/** /**
* @brief what will return the error message. If no error, return nullptr. * @brief msg will return the error message. If no error, return nullptr.
*/ */
const char* msg() const { const char* msg() const {
if (msg_) { if (msg_) {
...@@ -114,6 +114,7 @@ public: ...@@ -114,6 +114,7 @@ public:
* @brief operator bool, return True if there is no error. * @brief operator bool, return True if there is no error.
*/ */
operator bool() const { return !msg_; } operator bool() const { return !msg_; }
/** /**
* @brief check this status by glog. * @brief check this status by glog.
* @note It is a temp method used during cleaning Paddle code. It will be * @note It is a temp method used during cleaning Paddle code. It will be
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册