summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorguozhanxin <[email protected]>2022-03-28 03:09:59 +0000
committerGitee <[email protected]>2022-03-28 03:09:59 +0000
commit589014dff07b5b50519a0551cea2ebda2f552aad (patch)
tree00c7d9f5600d3c10c6e7996f7dc8a0fc91bc2ff0
parent730a0bb425a6516e4ca2f7c9930f30887decfb61 (diff)
parent3bd2e217070f46baa43bfce4b9700dd116edba6b (diff)
!53 更改 "rt_device_read()" 和"rt_device_write()" 的注释错误
Merge pull request !53 from Jackistang/fix
-rw-r--r--src/device.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/device.c b/src/device.c
index 9bfaf776d6..4e1abbeb6f 100644
--- a/src/device.c
+++ b/src/device.c
@@ -307,7 +307,7 @@ RTM_EXPORT(rt_device_close);
*
* @param size is the size of buffer.
*
- * @return the actually read size on successful, otherwise negative returned.
+ * @return the actually read size on successful, otherwise zero returned.
*
* @note since 0.4.0, the unit of size/pos is a block for block device.
*/
@@ -350,7 +350,7 @@ RTM_EXPORT(rt_device_read);
*
* @param size is the size of buffer.
*
- * @return the actually written size on successful, otherwise negative returned.
+ * @return the actually written size on successful, otherwise zero returned.
*
* @note since 0.4.0, the unit of size/pos is a block for block device.
*/