Skip to content

Commit 6a971b1

Browse files
Fix typos
1 parent 12eb487 commit 6a971b1

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

docs/_docs/reference/other-new-features/named-tuples.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,7 @@ NamedTuple[("name", "age"), (String, Int)]
127127

128128
A `NamedTuple[N, V]` type is publicly known to be a supertype (but not a subtype) of its value paramater `V`, which means that regular tuples can be assigned to named tuples but not _vice versa_.
129129

130-
The `NamedTuple` object contains a number of extension methods for named tuples hat mirror the same functions in `Tuple`. Examples are
130+
The `NamedTuple` object contains a number of extension methods for named tuples that mirror the same functions in `Tuple`. Examples are
131131
`apply`, `head`, `tail`, `take`, `drop`, `++`, `map`, or `zip`.
132132
Similar to `Tuple`, the `NamedTuple` object also contains types such as `Elem`, `Head`, `Concat`
133133
that describe the results of these extension methods.
@@ -154,7 +154,7 @@ that `c: C`, and that `n` is not otherwise legal as a name of a selection on `c`
154154
Then `c.n` is a legal selection, which expands to `c.selectDynamic("n").asInstanceOf[T]`.
155155

156156
It is the task of the implementation of `selectDynamic` in `C` to ensure that its
157-
computed result conforms to the predicted type `T`
157+
computed result conforms to the predicted type `T`.
158158

159159
As an example, assume we have a query type `Q[T]` defined as follows:
160160

library/src-bootstrapped/scala/NamedTuple.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -186,7 +186,7 @@ object NamedTupleDecomposition:
186186
/** The named tuple consisting of all elements of this tuple in reverse */
187187
inline def reverse: Reverse[NamedTuple[N, V]] = x.toTuple.reverse
188188

189-
/** The named tuple consisting of all elements values of this tuple zipped
189+
/** The named tuple consisting of all element values of this tuple zipped
190190
* with corresponding element values in named tuple `that`.
191191
* If the two tuples have different sizes,
192192
* the extra elements of the larger tuple will be disregarded.

0 commit comments

Comments
 (0)