⚠ This page is served via a proxy. Original site: https://github.com
This service does not collect credentials or authentication data.
Skip to content
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
6 changes: 3 additions & 3 deletions better-code/src/chapter-3-errors.md
Original file line number Diff line number Diff line change
Expand Up @@ -573,12 +573,12 @@ calls attention to the error type introduced by `ThisModule`.

##### Documenting Mutating Functions

When a runtime error occurs partway through a mutating operation, a a
When a runtime error occurs partway through a mutating operation, a
partially mutated state may be left behind. Trying to describe these
states in detail is usually a bad idea. Apart from the fact that
such descriptions can be unmanageably complex—try to document the
state of an array from partway through an aborted sorting operation—it
is normally information no client can use.
state of an array partway through an aborted sort—it is normally
information no client can use.

Partially documenting these states *can* be useful, however. For
example, [Swift's
Expand Down