mirror of
https://github.com/vlang/v.git
synced 2025-09-15 23:42:28 +03:00
all: replace "NB:" with "Note:" (docs/comments)
This commit is contained in:
parent
f74b65b63f
commit
36ec47cd20
131 changed files with 209 additions and 209 deletions
|
@ -14,7 +14,7 @@ pub fn repeat(c byte, n int) string {
|
|||
}
|
||||
|
||||
// strings.repeat_string - gives you `n` repetitions of the substring `s`
|
||||
// NB: strings.repeat, that repeats a single byte, is between 2x
|
||||
// Note: strings.repeat, that repeats a single byte, is between 2x
|
||||
// and 24x faster than strings.repeat_string called for a 1 char string.
|
||||
pub fn repeat_string(s string, n int) string {
|
||||
if n <= 0 || s.len == 0 {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue