1
0
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:
Delyan Angelov 2022-08-14 08:06:52 +03:00
parent 9734148f12
commit 4c0339242a
No known key found for this signature in database
GPG Key ID: 66886C0F12D595ED

View File

@ -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(`|`)