Skip to content

Commit 87cfcb8

Browse files
authored
[doc][stdlib] Minor edits
1 parent 8663f07 commit 87cfcb8

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

docs/StandardLibraryProgrammersManual.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -172,9 +172,9 @@ We also have some recommendations for defining other members. These aren't stric
172172
173173
- It's okay for the core type declaration to forward reference large nested types or static members that are defined in subsequent extensions. It's often a good idea to define these in an extension immediately following the type declaration, but this is not a strict rule.
174174
175-
Extensions are a nice way to break up the implementation into easily digestable chunks, but they aren't the only way. The goal is to make things easy to understand -- if a type is small enough, it may be best to list every member directly in the `struct`/`class` definition, while for huge types it often makes more sense to break them up into number of separate source files.
175+
Extensions are a nice way to break up the implementation into easily digestable chunks, but they aren't the only way. The goal is to make things easy to understand -- if a type is small enough, it may be best to list every member directly in the `struct`/`class` definition, while for huge types it often makes more sense to break them up into a handful of separate source files instead.
176176
177-
```
177+
```swift
178178
// BAD (a jumbled mess)
179179
struct Foo: RandomAccessCollection, Hashable {
180180
var count: Int { ... }

0 commit comments

Comments
 (0)