Skip to content

Commit 2d09432

Browse files
authored
[SE-0334] Fix typos (#1772)
1 parent eb5ac95 commit 2d09432

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

proposals/0334-pointer-usability-improvements.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -88,12 +88,12 @@ Calculating the offset between the start of the data structure to the field of t
8888
We propose to add a function to help perform this operation on raw pointer types:
8989
```swift
9090
extension UnsafeRawPointer {
91-
public func alignedUp<T>(for: T.type) -> Self
91+
public func alignedUp<T>(for: T.Type) -> Self
9292
}
9393
```
9494

9595
This function will round the current pointer up to the next address properly aligned to access an instance of `T`.
96-
When applied to a `self` already aligned for `T`, `UnsafeRawPointer.aligned(for:)` will return `self`.
96+
When applied to a `self` already aligned for `T`, `UnsafeRawPointer.alignedUp(for:)` will return `self`.
9797

9898
The new function would make identifying the storage location of `T` much more straightforward than in the example above:
9999
```swift

0 commit comments

Comments
 (0)