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:
|
||||
// ```v
|
||||
// st := 'Hello there,
|
||||
// |this is a string,
|
||||
// | Everything before the first | is removed'.strip_margin()
|
||||
// | this is a string,
|
||||
// | Everything before the first | is removed'.strip_margin()
|
||||
//
|
||||
// assert st == 'Hello there,
|
||||
// this is a string,
|
||||
// Everything before the first | is removed'
|
||||
// this is a string,
|
||||
// Everything before the first | is removed'
|
||||
// ```
|
||||
pub fn (s string) strip_margin() string {
|
||||
return s.strip_margin_custom(`|`)
|
||||
|
Loading…
Reference in New Issue
Block a user