Skip to content

Commit e19bb77

Browse files
committed
Avoid using "data type" to mean just "type".
The term "data type" is rare in the book to begin with. I've left a couple places where it refers to a type that stores some kind of data. But in most places (as pointed out by Kyle during review of this PR) we're talking about both types that do and don't have storage.
1 parent 5bc6390 commit e19bb77

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

Sources/TSPL/TSPL.docc/LanguageGuide/ClassesAndStructures.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ come at the cost of increased complexity.
5353
As a general guideline,
5454
prefer structures because they're easier to reason about,
5555
and use classes when they're appropriate or necessary.
56-
In practice, this means most of the custom data types you define
56+
In practice, this means most of the custom types you define
5757
will be structures and enumerations.
5858
For a more detailed comparison,
5959
see [Choosing Between Structures and Classes](https://developer.apple.com/documentation/swift/choosing_between_structures_and_classes).

Sources/TSPL/TSPL.docc/LanguageGuide/NestedTypes.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Nested Types
22

3-
Define data types inside the scope of another data type.
3+
Define types inside the scope of another type.
44

55
Enumerations are often created to support a specific class or structure's functionality.
66
Similarly, it can be convenient to define utility classes and structures

Sources/TSPL/TSPL.docc/LanguageGuide/Properties.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1549,7 +1549,7 @@ the property wrapper exposes only one piece of information ---
15491549
whether the number was adjusted ---
15501550
so it exposes that Boolean value as its projected value.
15511551
A wrapper that needs to expose more information
1552-
can return an instance of some other data type,
1552+
can return an instance of some other type,
15531553
or it can return `self`
15541554
to expose the instance of the wrapper as its projected value.
15551555

0 commit comments

Comments
 (0)