Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[SE-0453] Update Vector example and doc comment #2630

Closed
wants to merge 2 commits into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions proposals/0453-vector.md
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ member it will be inline allocated on the heap with the rest of the properties.
alone.

```swift
func complexAlgorithm() -> Int {
func complexAlgorithm() {
// This is a stack allocation, no 'malloc's or reference counting here!
let elements: InlineArray<4, Int> = [1, 2, 3, 4]

Expand Down Expand Up @@ -276,7 +276,7 @@ extension InlineArray where Element: ~Copyable {
/// Initializes every element in this InlineArray by running the closure with the
/// previously initialized element.
///
/// This will call the closure 'count' times, where 'count' is the static
/// This will call the closure `count - 1` times, where `count` is the static
/// count of the InlineArray, to initialize every element by passing the closure
/// an immutable borrow reference to the previously initialized element. The
/// closure is allowed to throw an error at any point during initialization at
Expand Down