mirror of
https://github.com/vlang/v.git
synced 2023-08-10 21:13:21 +03:00
doc: fix example comment for string.strip_margin()
This commit is contained in:
parent
9734148f12
commit
4c0339242a
|
@ -1935,12 +1935,12 @@ pub fn (s string) fields() []string {
|
||||||
// Example:
|
// Example:
|
||||||
// ```v
|
// ```v
|
||||||
// st := 'Hello there,
|
// st := 'Hello there,
|
||||||
// |this is a string,
|
// | this is a string,
|
||||||
// | Everything before the first | is removed'.strip_margin()
|
// | Everything before the first | is removed'.strip_margin()
|
||||||
//
|
//
|
||||||
// assert st == 'Hello there,
|
// assert st == 'Hello there,
|
||||||
// this is a string,
|
// this is a string,
|
||||||
// Everything before the first | is removed'
|
// Everything before the first | is removed'
|
||||||
// ```
|
// ```
|
||||||
pub fn (s string) strip_margin() string {
|
pub fn (s string) strip_margin() string {
|
||||||
return s.strip_margin_custom(`|`)
|
return s.strip_margin_custom(`|`)
|
||||||
|
|
Loading…
Reference in New Issue
Block a user