summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorrtthread-bot <[email protected]>2022-03-28 16:15:54 +0000
committerrtthread-bot <[email protected]>2022-03-28 16:15:54 +0000
commit6330720b5c02452a58d6861c506b3f03579f9b63 (patch)
treec428689a671883457d637bd7f16a66d938216b55 /src
parent84e18bb2d55a1722bcd63e3edb2d02b23ca00e34 (diff)
parent85e2d6b85b16005bc73894b407b3603c7c3203aa (diff)
Merge remote-tracking branch 'rtt_gitee/gitee_master'
Diffstat (limited to 'src')
-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.
*/