Skip to content

Commit

Permalink
Fix triple-quoted string example in readme (#1620)
Browse files Browse the repository at this point in the history
  • Loading branch information
avi-cenna authored Oct 9, 2023
1 parent 0b9a599 commit d17401e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -1035,7 +1035,7 @@ $ just --evaluate
escapes := "\t\n\r\"\\"
```

Indented versions of both single- and double-quoted strings, delimited by triple single- or triple double-quotes, are supported. Indented string lines are stripped of leading whitespace common to all non-blank lines:
Indented versions of both single- and double-quoted strings, delimited by triple single- or triple double-quotes, are supported. Indented string lines are stripped of a leading line break, and leading whitespace common to all non-blank lines:

```just
# this string will evaluate to `foo\nbar\n`
Expand All @@ -1044,7 +1044,7 @@ x := '''
bar
'''
# this string will evaluate to `abc\n wuv\nbar\n`
# this string will evaluate to `abc\n wuv\nxyz\n`
y := """
abc
wuv
Expand Down

0 comments on commit d17401e

Please sign in to comment.