mirror of
https://github.com/vlang/v.git
synced 2023-08-10 21:13:21 +03:00
hot code reloading examples
This commit is contained in:
@@ -641,7 +641,7 @@ pub fn (s string) ustring_tmp() ustring {
|
||||
return res
|
||||
}
|
||||
|
||||
fn (u ustring) substr(start, end int) string {
|
||||
pub fn (u ustring) substr(start, end int) string {
|
||||
start = u.runes[start]
|
||||
if end >= u.runes.len {
|
||||
end = u.s.len
|
||||
@@ -652,11 +652,11 @@ fn (u ustring) substr(start, end int) string {
|
||||
return u.s.substr(start, end)
|
||||
}
|
||||
|
||||
fn (u ustring) left(pos int) string {
|
||||
pub fn (u ustring) left(pos int) string {
|
||||
return u.substr(0, pos)
|
||||
}
|
||||
|
||||
fn (u ustring) right(pos int) string {
|
||||
pub fn (u ustring) right(pos int) string {
|
||||
return u.substr(pos, u.len)
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user