Skip to content

Commit 61c9fcd

Browse files
committed
[Fix] Fix typos across docs and codebase
1 parent 8873f19 commit 61c9fcd

24 files changed

+37
-37
lines changed

SwiftCompilerSources/force_lib.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,5 +11,5 @@
1111
//===----------------------------------------------------------------------===//
1212

1313
/// Dummy source file to force CMake generated SwiftInTheCompiler.xcodeproj
14-
/// to sucessfully build static libraries conatining only object files used
14+
/// to successfully build static libraries conatining only object files used
1515
/// during "bootstrap" process to link Swift sources into the compiler.

docs/DifferentiableProgramming.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@ Backticks were added manually.
108108
* [Not support differentiable programming](#not-support-differentiable-programming)
109109
* [Use another language or framework for differentiable programming](#use-another-language-or-framework-for-differentiable-programming)
110110
* [Other approaches to differentiable programming](#other-approaches-to-differentiable-programming)
111-
* [Acknowledgements](#acknowledgements)
111+
* [Acknowledgments](#acknowledgments)
112112

113113
## Introduction
114114

@@ -3088,7 +3088,7 @@ First-class language support for differentiation will enable convenient,
30883088
extensible, and performant differentiable programming in Swift - more so than
30893089
library-based approaches.
30903090

3091-
## Acknowledgements
3091+
## Acknowledgments
30923092

30933093
Many people have influenced the design and the implementation of the
30943094
differentiable programming feature. The authors would like to thank these people

docs/DifferentiableProgrammingImplementation.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
- [Derivative code generation details](#derivative-code-generation-details)
2727
- [Special cases](#special-cases)
2828
- [Future directions and infrastructural changes](#future-directions-and-infrastructural-changes)
29-
- [Acknowledgements](#acknowledgements)
29+
- [Acknowledgments](#acknowledgments)
3030

3131
## Introduction
3232

@@ -993,8 +993,8 @@ See [here](DifferentiableProgramming.md#linear-maps) for more information about
993993
- VJP functions will be removed throughout the differentiation system.
994994
- Pullback function generation will change to use transposition.
995995

996-
## Acknowledgements
996+
## Acknowledgments
997997

998-
Please see [here](DifferentiableProgramming.md#acknowledgements) for a list of people who have influenced the design and the implementation of differentiable programming in Swift.
998+
Please see [here](DifferentiableProgramming.md#acknowledgments) for a list of people who have influenced the design and the implementation of differentiable programming in Swift.
999999

10001000
Some content is borrowed from the [Swift Differentiable Programming Manifesto](DifferentiableProgramming.md) by Richard Wei and [Probabilistic & Differentiable Programming Summit '19 slides](https://twitter.com/rxwei/status/1144688743468527617) - thank you Richard.

include/swift/AST/DiagnosticsFrontend.def

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -434,7 +434,7 @@ NOTE(sdk_version_pbm_version,none,
434434
NOTE(compiled_module_ignored_reason,none,
435435
"compiled module '%0' was ignored because %select{%error"
436436
"|it belongs to a framework in the SDK"
437-
"|loading from module interfaces is prefered}1",
437+
"|loading from module interfaces is preferred}1",
438438
(StringRef, unsigned))
439439
NOTE(out_of_date_module_here,none,
440440
"%select{compiled|cached|forwarding|prebuilt}0 module is out of date: '%1'",

include/swift/Basic/LangOptions.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -831,7 +831,7 @@ namespace swift {
831831

832832
/// When building a PCM, rely on the Swift frontend's command-line -Xcc flags
833833
/// to build the Clang module via Clang frontend directly,
834-
/// and completly bypass the Clang driver.
834+
/// and completely bypass the Clang driver.
835835
bool DirectClangCC1ModuleBuild = false;
836836

837837
/// Return a hash code of any components from these options that should

include/swift/IDE/CodeCompletionResult.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -337,7 +337,7 @@ class ContextFreeCodeCompletionResult {
337337
bool IsSystem : 1;
338338
bool IsAsync : 1;
339339
/// Whether the result has been annotated as having an async alternative that
340-
/// should be prefered in async contexts.
340+
/// should be preferred in async contexts.
341341
bool HasAsyncAlternative : 1;
342342
CodeCompletionString *CompletionString;
343343
NullTerminatedStringRef ModuleName;
@@ -355,7 +355,7 @@ class ContextFreeCodeCompletionResult {
355355
NullTerminatedStringRef FilterName;
356356

357357
/// If the result represents a \c ValueDecl the name by which this decl should
358-
/// be refered to in diagnostics.
358+
/// be referred to in diagnostics.
359359
NullTerminatedStringRef NameForDiagnostics;
360360

361361
public:

include/swift/Refactoring/RefactoringKinds.def

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,11 +26,11 @@ REFACTORING(GlobalRename, "Global Rename", rename.global)
2626
/// (syntactically).
2727
REFACTORING(FindGlobalRenameRanges, "Find Global Rename Ranges", rename.global.find-ranges)
2828

29-
/// Find and categorize all occurences of the file-local symbol at a given
29+
/// Find and categorize all occurrences of the file-local symbol at a given
3030
/// location.
3131
REFACTORING(FindLocalRenameRanges, "Find Local Rename Ranges", rename.local.find-ranges)
3232

33-
/// Find and rename all occurences of the file-local symbol at a given
33+
/// Find and rename all occurrences of the file-local symbol at a given
3434
/// location.
3535
CURSOR_REFACTORING(LocalRename, "Local Rename", rename.local)
3636

include/swift/SIL/TypeSubstCloner.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -441,7 +441,7 @@ class TypeSubstCloner : public SILClonerWithScopes<ImplClass> {
441441
else {
442442
// Create a new function with this mangled name with an empty
443443
// body. There won't be any IR generated for it (hence the linkage),
444-
// but the symbol will be refered to by the debug info metadata.
444+
// but the symbol will be referred to by the debug info metadata.
445445
ParentFunction = FuncBuilder.getOrCreateFunction(
446446
ParentFunction->getLocation(), MangledName, SILLinkage::Shared,
447447
ParentFunction->getLoweredFunctionType(), ParentFunction->isBare(),

lib/AST/Attr.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -925,7 +925,7 @@ bool DeclAttribute::printImpl(ASTPrinter &Printer, const PrintOptions &Options,
925925
// will occur while building the Swift module because the overriding decl
926926
// doesn't override anything.
927927
// We couldn't skip every `override` keywords because they change the
928-
// ABI if the overridden decl is also publically visible.
928+
// ABI if the overridden decl is also publicly visible.
929929
// For public-override-internal case, having `override` doesn't have ABI
930930
// implication. Thus we can skip them.
931931
if (auto *VD = dyn_cast<ValueDecl>(D)) {

lib/AST/FineGrainedDependencies.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -143,7 +143,7 @@ SourceFileDepGraph::findExistingNodePairOrCreateAndAddIfNew(
143143
// But, if an arc is added for this, then *any* change that causes
144144
// a same-named interface to be dirty will dirty this implementation,
145145
// even if that interface is in another file.
146-
// Therefor no such arc is added here, and any dirtying of either
146+
// Therefore no such arc is added here, and any dirtying of either
147147
// the interface or implementation of this declaration will cause
148148
// the driver to recompile this source file.
149149
return nodePair;

0 commit comments

Comments
 (0)