1
0
mirror of https://github.com/vlang/v.git synced 2023-08-10 21:13:21 +03:00

make sqlite.DB public; make string.left/right private

This commit is contained in:
Alexander Medvednikov
2020-01-16 18:41:34 +01:00
parent 84a6c019e8
commit e1132156f5
3 changed files with 6 additions and 6 deletions

View File

@ -470,7 +470,7 @@ pub fn (s string) split_into_lines() []string {
}
// 'hello'.left(2) => 'he'
pub fn (s string) left(n int) string {
fn (s string) left(n int) string {
if n >= s.len {
return s
}
@ -478,7 +478,7 @@ pub fn (s string) left(n int) string {
}
// 'hello'.right(2) => 'llo'
pub fn (s string) right(n int) string {
fn (s string) right(n int) string {
if n >= s.len {
return ''
}