We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e23835c commit f001561Copy full SHA for f001561
1 file changed
vlib/strings/strings.c.v
@@ -9,7 +9,7 @@ pub fn repeat(c u8, n int) string {
9
mut bytes := unsafe { malloc_noscan(n + 1) }
10
unsafe {
11
C.memset(bytes, c, n)
12
- bytes[n] = `0`
+ bytes[n] = 0
13
}
14
return unsafe { bytes.vstring_with_len(n) }
15
@@ -34,7 +34,7 @@ pub fn repeat_string(s string, n int) string {
34
35
36
37
- bytes[blen] = `0`
+ bytes[blen] = 0
38
39
return unsafe { bytes.vstring_with_len(blen) }
40
0 commit comments