diff options
| author | 杨澄 <[email protected]> | 2021-03-17 23:55:27 +0800 |
|---|---|---|
| committer | GitHub <[email protected]> | 2021-03-17 23:55:27 +0800 |
| commit | 8836cb7895adb51bb361c1492b6b780ebdda78b6 (patch) | |
| tree | 38029ef28fcc5cb7b439684da4050ddf2442cdf0 /src | |
| parent | 6de81af04cbef6825f1d0d9921bacc59df2c7189 (diff) | |
Fix code comment error for function rt_memset().
Diffstat (limited to 'src')
| -rw-r--r-- | src/kservice.c | 4 |
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) |
