Skip to content

Commit

Permalink
doc: fix example comment for string.strip_margin()
Browse files Browse the repository at this point in the history
  • Loading branch information
spytheman committed Aug 14, 2022
1 parent 9734148 commit 4c03392
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions vlib/builtin/string.v
Original file line number Diff line number Diff line change
Expand Up @@ -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(`|`)
Expand Down

0 comments on commit 4c03392

Please sign in to comment.