Skip to content

Commit 67031ac

Browse files
grynspanjgmcnutt
andauthored
":" -> "."
Co-authored-by: jgmcnutt <jgmcnutt@me.com>
1 parent 06411ba commit 67031ac

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

Sources/Testing/Testing.docc/Attachments.md

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ protocol to create your own attachable types.
2020
### Attach data or strings
2121

2222
If your test produces encoded data that you want to save as an attachment, you
23-
can call ``Attachment/record(_:named:sourceLocation:)``:
23+
can call ``Attachment/record(_:named:sourceLocation:)``.
2424

2525
```swift
2626
struct SalesReport { ... }
@@ -56,7 +56,7 @@ you can extend it to add conformance to ``Attachable``. When you import the
5656
[Foundation](https://developer.apple.com/documentation/foundation) module, the
5757
testing library automatically provides a default implementation of
5858
``Attachable`` to types that also conform to [`Encodable`](https://developer.apple.com/documentation/swift/encodable)
59-
or [`NSSecureCoding`](https://developer.apple.com/documentation/foundation/nssecurecoding):
59+
or [`NSSecureCoding`](https://developer.apple.com/documentation/foundation/nssecurecoding).
6060

6161
```swift
6262
import Testing
@@ -88,7 +88,7 @@ You can attach instances of the following system-provided image types to a test:
8888
| Windows | [`HBITMAP`](https://learn.microsoft.com/en-us/windows/win32/gdi/bitmaps), [`HICON`](https://learn.microsoft.com/en-us/windows/win32/menurc/icons), [`IWICBitmapSource`](https://learn.microsoft.com/en-us/windows/win32/api/wincodec/nn-wincodec-iwicbitmapsource) (including its subclasses declared by Windows Imaging Component) |
8989

9090
When you attach an image to a test, you can specify the image format to use in
91-
addition to a preferred name:
91+
addition to a preferred name.
9292

9393
```swift
9494
struct SalesReport { ... }
@@ -109,7 +109,7 @@ If you have a value that needs a custom encoded representation when you save it
109109
as an attachment, implement ``Attachable/withUnsafeBytes(for:_:)``. The
110110
implementation of this function calls its `body` argument and passes the encoded
111111
representation of `self` or, if a failure occurs, throws an error representing
112-
that failure:
112+
that failure.
113113

114114
```swift
115115
struct SalesReport { ... }
@@ -137,7 +137,7 @@ the testing library calls this function as soon as you record the attachment.
137137
If you can reliably estimate in advance how large the encoded representation
138138
will be, implement ``Attachable/estimatedAttachmentByteCount``. The testing
139139
library uses the value of this property as a hint to optimize memory and disk
140-
usage:
140+
usage.
141141

142142
```swift
143143
extension SalesReport: Attachable {
@@ -149,8 +149,8 @@ extension SalesReport: Attachable {
149149
}
150150
```
151151

152-
You can also implement ``Attachable/preferredName(for:basedOn:)`` if you wish to
153-
customize the name of the attachment when it is saved:
152+
You can also implement ``Attachable/preferredName(for:basedOn:)`` if you want to
153+
customize the name of the attachment when saving it.
154154

155155
```swift
156156
extension SalesReport: Attachable {

0 commit comments

Comments
 (0)