summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJackistang <[email protected]>2020-08-14 18:53:29 +0800
committerGitee <[email protected]>2020-08-14 18:53:29 +0800
commit3bd2e217070f46baa43bfce4b9700dd116edba6b (patch)
treeea9a423794f54fce679aceccf0695fec4e9a16ae
parent6bf76a375c53c1de3f1a4b1d0f7fc6506833f6dd (diff)
update src/device.c.
Correct "rt_device_read()" and "rt_device_write()" comments error. They should return 0 on fail, otherwise negative.
-rw-r--r--src/device.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/device.c b/src/device.c
index 32c06b380c..7333df8afb 100644
--- a/src/device.c
+++ b/src/device.c
@@ -339,7 +339,7 @@ RTM_EXPORT(rt_device_close);
* @param buffer the data buffer to save read data
* @param size 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.
*/
@@ -378,7 +378,7 @@ RTM_EXPORT(rt_device_read);
* @param buffer the data buffer to be written to device
* @param size 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.
*/