Skip to content

Commit 5eaa3c4

Browse files
author
Stefan Natchev
committed
Fix typos in documentation
1 parent c959ce2 commit 5eaa3c4

13 files changed

+17
-17
lines changed

Diff for: docs/ErrorHandlingRationale.rst

+2-2
Original file line numberDiff line numberDiff line change
@@ -173,7 +173,7 @@ be quite amazing for us to assert that code shouldn't be written that
173173
way, understanding nothing else about it. As long as programmers do
174174
face these issues, the language has some responsibility to help them.
175175

176-
Therefore, in my judgement, promoting the use of universal errors is
176+
Therefore, in my judgment, promoting the use of universal errors is
177177
highly problematic. They undermine the easy comprehension of code,
178178
and they undermine the language's ability to help the programmer
179179
reason about errors. This design will instead focus on explicitly
@@ -577,7 +577,7 @@ they produce, and so many errors just end up falling into broad
577577
buckets. Different libraries end up with their own library-specific
578578
general error classes, and exceptions list end up just restating the
579579
library's own dependencies or wrapping the underlying errors in ways
580-
that loses criticial information.
580+
that loses critical information.
581581
582582
583583
Tradeoffs of typed propagation

Diff for: docs/HighLevelSILOptimizations.rst

+2-2
Original file line numberDiff line numberDiff line change
@@ -335,13 +335,13 @@ readwrite
335335
Optimize semantics attribute
336336
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
337337

338-
The optimize attribute adds function-sepcific directives to the optimizer.
338+
The optimize attribute adds function-specific directives to the optimizer.
339339

340340
The optimize attribute supports the following tags:
341341

342342
sil.never
343343

344-
The sil optimizer should not optimize this funciton.
344+
The sil optimizer should not optimize this function.
345345

346346
Example:
347347
@_semantics("optimize.sil.never")

Diff for: docs/Pattern Matching.rst

+1-1
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ Swift has a pretty small set of types right now:
2626
* Function types.
2727
* Tuples. Heterogeneous fixed-length products. Swift's system
2828
provides two basic kinds of element: positional and labelled.
29-
* Arrays. Homogenous fixed-length aggregates.
29+
* Arrays. Homogeneous fixed-length aggregates.
3030
* Algebraic data types (ADTs), introduce by enum. Nominal closed
3131
disjoint unions of heterogeneous types.
3232
* Struct types. Nominal heterogeneous fixed-length products.

Diff for: docs/StdlibRationales.rst

+1-1
Original file line numberDiff line numberDiff line change
@@ -159,7 +159,7 @@ functions don't return lazy collection wrappers that refer to users' closures.
159159
The consequence is that all users' closures are ``@noescape``, except in an
160160
explicitly lazy context.
161161

162-
Based on this rule, we conclude that ``enumeraate()``, ``zip()`` and
162+
Based on this rule, we conclude that ``enumerate(), ``zip()`` and
163163
``reverse()`` return lazy wrappers, but ``filter()`` and ``map()`` don't. For
164164
the first three functions being lazy is the right default, since usually the
165165
result is immediately consumed by for-in, so we don't want to allocate memory

Diff for: docs/archive/Objective-C Interoperability.rst

+1-1
Original file line numberDiff line numberDiff line change
@@ -320,7 +320,7 @@ Methods marked as "overrideable API" only have Objective-C entry points:
320320
- Less to think about, maximum compatibility.
321321
- Penalizes future Swift clients (and potentially Objective-C clients?).
322322

323-
Methods marked as "overrideable API" have both Objective-C and Swift entry
323+
Methods marked as "overridable API" have both Objective-C and Swift entry
324324
points:
325325

326326
- Requires teaching Clang to emit Swift vtables.

Diff for: docs/doxygen.cfg.in

+2-2
Original file line numberDiff line numberDiff line change
@@ -385,7 +385,7 @@ SHOW_DIRECTORIES = YES
385385
# version control system). Doxygen will invoke the program by executing (via
386386
# popen()) the command <command> <input-file>, where <command> is the value of
387387
# the FILE_VERSION_FILTER tag, and <input-file> is the name of an input file
388-
# provided by doxygen. Whatever the progam writes to standard output
388+
# provided by doxygen. Whatever the program writes to standard output
389389
# is used as the file version. See the manual for examples.
390390

391391
#FILE_VERSION_FILTER =
@@ -418,7 +418,7 @@ WARN_IF_UNDOCUMENTED = NO
418418

419419
WARN_IF_DOC_ERROR = YES
420420

421-
# This WARN_NO_PARAMDOC option can be abled to get warnings for
421+
# This WARN_NO_PARAMDOC option can be enabled to get warnings for
422422
# functions that are documented, but have no documentation for their parameters
423423
# or return value. If set to NO (the default) doxygen will only warn about
424424
# wrong or incomplete parameter documentation, but not about the absence of

Diff for: docs/proposals/Accessors.rst

+1-1
Original file line numberDiff line numberDiff line change
@@ -1296,7 +1296,7 @@ Code generation patterns
12961296
The signatures and access patterns for addressors will need to change
12971297
in order to ensure memory-safety.
12981298

1299-
``mutableAddress`` currentlys returns an ``UnsafeMutablePointer``; it
1299+
``mutableAddress`` currently returns an ``UnsafeMutablePointer``; it
13001300
will need to return ``(Builtin.NativeObject?, UnsafeMutablePointer)``.
13011301
The owner pointer must be a native object; we cannot efficiently
13021302
support either uniqueness checking or the NSM bit on non-Swift

Diff for: docs/proposals/ArrayBridge.rst

+1-1
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ significant. For example, the design above would pose significant performance
7171
problems for arrays of integers, because every subscript operation would have to
7272
check to see if the representation is an NSArray, realize it is not, then do the
7373
constant time index into the native representation. Beyond requiring an extra
74-
check, this check would disable optimizations that can provide a signficant
74+
check, this check would disable optimizations that can provide a significant
7575
performance win (like auto-vectorization).
7676

7777
However, the inherent limitations of ``NSArray`` mean that we can

Diff for: docs/proposals/AttrC.rst

+2-2
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ Eventually, we would like to write Swift modules which define pure-C entry
44
points for top-level functions, and be able to export more data types to
55
C code.
66

7-
This will be imporant for the Linux port, but also perhaps for system
7+
This will be important for the Linux port, but also perhaps for system
88
frameworks that want to transition to Swift.
99

1010
The radars tracking this work are:
@@ -59,7 +59,7 @@ and "non-POD". POD types include:
5959

6060
On Linux, we can't have reference counted pointers here at all, and
6161
NSArray, etc do not exist, so only POD types are bridgeable. We must
62-
ensure that we produce ther right diagnostic and not crash when the
62+
ensure that we produce the right diagnostic and not crash when the
6363
user references NSArray, etc on Linux.
6464

6565
On Darwin, we can allow passing reference counted pointers directly

Diff for: docs/proposals/Concurrency.rst

+1-1
Original file line numberDiff line numberDiff line change
@@ -629,7 +629,7 @@ use actors can scale to support millions of concurrent actors because actors are
629629
not backed by a live thread or by a stack.
630630

631631
In Swift actors could be implemented using classes that inherit from the generic
632-
``Actor`` class. The generic parameter determins the type of messages that the
632+
``Actor`` class. The generic parameter determines the type of messages that the
633633
actor can accept. The message type needs to be of ``CopyableType`` to ensure the
634634
safety of the model. The actor class exposes two methods: ``send`` and
635635
``accept``. Messages are sent to actors using the ``send`` method and they never

Diff for: docs/proposals/DeclarationTypeChecker.rst

+1-1
Original file line numberDiff line numberDiff line change
@@ -176,7 +176,7 @@ How do we measure progress?
176176

177177
The proposed change is a major architectural shift, and it's only complete when we have eliminated all ad hoc recursion from the front end. There are a few ways in which we can measure progress along the way:
178178

179-
**AST nodes that implement the phase-aware trait**: Eventually, all of our AST nodes will implement the phase-aware trait. The number of AST nodes that do properly implement that trait (reporting current phase, enumerating dependencies for a phase transition) and become part of the dependency graph and priorty queue gives an indication of how far we've gotten.
179+
**AST nodes that implement the phase-aware trait**: Eventually, all of our AST nodes will implement the phase-aware trait. The number of AST nodes that do properly implement that trait (reporting current phase, enumerating dependencies for a phase transition) and become part of the dependency graph and priority queue gives an indication of how far we've gotten.
180180

181181
**Accessors that check the current phase**: When we're finished, each of the AST's accessors should assert that the AST node is in the appropriate phase. The number of such assertions that have been enabled is an indication of how well the type checker is respecting the dependencies.
182182

Diff for: docs/proposals/InoutCOWOptimization.rst

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
:Authors: Dave Abrahams, Joe Groff
88

99
:Summary: Our writeback model interacts with Copy-On-Write (COW) to
10-
cause some surprising ineffiencies, such as O(N) performance
10+
cause some surprising inefficiencies, such as O(N) performance
1111
for ``x[0][0] = 1``. We propose a modified COW optimization
1212
that recovers O(1) performance for these cases and supports
1313
the efficient use of slices in algorithm implementation.

Diff for: docs/proposals/ObjC Interoperation.rst

+1-1
Original file line numberDiff line numberDiff line change
@@ -330,7 +330,7 @@ difference between a stored property and its underlying storage,
330330
For another example, code
331331
class might access
332332

333-
In bot hcaess, t makes sense to organize the code that way,
333+
In both cases, t makes sense to organize the code that way,
334334
but Objective C punishes the performance of that code in order to
335335
reserve the language's
336336

0 commit comments

Comments
 (0)