Skip to content

Commit

Permalink
Minor readme cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
mattcox committed Aug 13, 2024
1 parent 1ac9ae4 commit 39ec905
Showing 1 changed file with 31 additions and 31 deletions.
62 changes: 31 additions & 31 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@ using a `resultBuilder`.
To build a basic multi-line string:
```swift
String {
"Line 1"
"Line 2"
"Line 1"
"Line 2"
}
```

Expand All @@ -33,8 +33,8 @@ Line 2
A custom separator can be used to control how the strings are joined:
```swift
String(separator: " != ") {
"String 1"
"String 2"
"String 1"
"String 2"
}
```

Expand All @@ -48,9 +48,9 @@ Any type that conforms to `CustomStringConvertible` can be added to the
string builder:
```swift
String {
1234
true
UUID()
1234
true
UUID()
}
```

Expand All @@ -65,30 +65,30 @@ true
String builders can be nested with different separators at each level:
```swift
String {
"One"
String(separator: ".") {
"Two"
"Three"
}
"Four"
String {
String {
"Five"
String(separator: "\n\n") {
"Six"
"Seven"
}
"Eight"
}
"Nine"
}
"One"
String(separator: ".") {
"Two"
"Three"
}
"Four"
String {
String {
"Five"
String(separator: "\n\n") {
"Six"
"Seven"
}
"Eight"
}
"Nine"
}
"Ten"
}
```
Expand Down

0 comments on commit 39ec905

Please # to comment.