summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorBernard Xiong <[email protected]>2021-03-20 18:22:10 +0800
committerGitHub <[email protected]>2021-03-20 18:22:10 +0800
commitbf2c74f654cab1c09628fb62c4d7abcb9d7ca690 (patch)
tree419082a9246af97408aa4dbe0d5cbf1a9744700c /src
parent2836954dce165646486cec5b09242a798079b662 (diff)
parent8836cb7895adb51bb361c1492b6b780ebdda78b6 (diff)
Merge pull request #4478 from Eureka1024/master
Fix code comment error for function rt_memset().
Diffstat (limited to 'src')
-rw-r--r--src/kservice.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/kservice.c b/src/kservice.c
index 79ee4c2b9d..c08dc68314 100644
--- a/src/kservice.c
+++ b/src/kservice.c
@@ -146,10 +146,10 @@ RT_WEAK void *rt_memset(void *s, int c, rt_ubase_t count)
if (!TOO_SMALL(count) && !UNALIGNED(s))
{
- /* If we get this far, we know that n is large and m is word-aligned. */
+ /* If we get this far, we know that count is large and s is word-aligned. */
aligned_addr = (unsigned long *)s;
- /* Store D into each char sized location in BUFFER so that
+ /* Store d into each char sized location in buffer so that
* we can set large blocks quickly.
*/
if (LBLOCKSIZE == 4)