Skip to content

Commit 589014d

Browse files
guozhanxingitee-org
authored andcommitted
!53 更改 "rt_device_read()" 和"rt_device_write()" 的注释错误
Merge pull request !53 from Jackistang/fix
2 parents 730a0bb + 3bd2e21 commit 589014d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/device.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -307,7 +307,7 @@ RTM_EXPORT(rt_device_close);
307307
*
308308
* @param size is the size of buffer.
309309
*
310-
* @return the actually read size on successful, otherwise negative returned.
310+
* @return the actually read size on successful, otherwise zero returned.
311311
*
312312
* @note since 0.4.0, the unit of size/pos is a block for block device.
313313
*/
@@ -350,7 +350,7 @@ RTM_EXPORT(rt_device_read);
350350
*
351351
* @param size is the size of buffer.
352352
*
353-
* @return the actually written size on successful, otherwise negative returned.
353+
* @return the actually written size on successful, otherwise zero returned.
354354
*
355355
* @note since 0.4.0, the unit of size/pos is a block for block device.
356356
*/

0 commit comments

Comments
 (0)