Skip to content

Commit 041e24b

Browse files
authored
Align comments vertically (#290)
This got incorrectly changed as part of normalizing indentation in code listings to 4 spaces. Reviewed the changes in 28a4aaf and I don't see any remaining indentation problems that weren't already fixed by a130dfc or fixed by this PR.
2 parents 8b7826c + 2f1d35b commit 041e24b

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

TSPL.docc/LanguageGuide/AccessControl.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -231,25 +231,25 @@ the default access level of the type's members will be internal.
231231
> and avoids presenting the internal workings of a type as public API by mistake.
232232
233233
```swift
234-
public class SomePublicClass { // explicitly public class
234+
public class SomePublicClass { // explicitly public class
235235
public var somePublicProperty = 0 // explicitly public class member
236236
var someInternalProperty = 0 // implicitly internal class member
237237
fileprivate func someFilePrivateMethod() {} // explicitly file-private class member
238238
private func somePrivateMethod() {} // explicitly private class member
239239
}
240240

241-
class SomeInternalClass { // implicitly internal class
241+
class SomeInternalClass { // implicitly internal class
242242
var someInternalProperty = 0 // implicitly internal class member
243243
fileprivate func someFilePrivateMethod() {} // explicitly file-private class member
244244
private func somePrivateMethod() {} // explicitly private class member
245245
}
246246

247-
fileprivate class SomeFilePrivateClass { // explicitly file-private class
247+
fileprivate class SomeFilePrivateClass { // explicitly file-private class
248248
func someFilePrivateMethod() {} // implicitly file-private class member
249249
private func somePrivateMethod() {} // explicitly private class member
250250
}
251251

252-
private class SomePrivateClass { // explicitly private class
252+
private class SomePrivateClass { // explicitly private class
253253
func somePrivateMethod() {} // implicitly private class member
254254
}
255255
```

TSPL.docc/ReferenceManual/Attributes.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1762,8 +1762,8 @@ into code that calls the static methods of the result builder type:
17621762
func draw() -> String { return content }
17631763
}
17641764
struct Line<D: Drawable>: Drawable {
1765-
var elements: [D]
1766-
func draw() -> String {
1765+
var elements: [D]
1766+
func draw() -> String {
17671767
return elements.map { $0.draw() }.joined(separator: "")
17681768
}
17691769
}

0 commit comments

Comments
 (0)