Skip to content

Commit bfbc983

Browse files
authored
Fix some typos (#876)
* fix some typos * fix typo language * fix typo Identifier * fix typo different * Revert "fix typo Identifier" This reverts commit c01f532.
1 parent a2d3f59 commit bfbc983

File tree

5 files changed

+6
-6
lines changed

5 files changed

+6
-6
lines changed

Sources/SwiftDocC/Coverage/DocumentationCoverageOptions.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -428,7 +428,7 @@ extension DocumentationCoverageOptions.KindFilterOptions {
428428
// 14
429429
"instance-property": .instanceProperty,
430430
// 15
431-
"instance-subcript": .instanceSubscript,
431+
"instance-subscript": .instanceSubscript,
432432
// 16
433433
"instance-variable": .instanceVariable,
434434
// 17

Sources/SwiftDocC/Indexing/Navigator/AvailabilityIndex.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -99,8 +99,8 @@ public class AvailabilityIndex: Codable {
9999
}
100100

101101
/// Returns a list of platforms for a given language.
102-
public func platforms(for interfaceLangauge: InterfaceLanguage) -> [Platform.Name]? {
103-
guard let values = languageToPlatforms[interfaceLangauge] else { return nil }
102+
public func platforms(for interfaceLanguage: InterfaceLanguage) -> [Platform.Name]? {
103+
guard let values = languageToPlatforms[interfaceLanguage] else { return nil }
104104
return Array(values)
105105
}
106106

Sources/SwiftDocC/Infrastructure/Workspace/DefaultAvailability.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ public struct DefaultAvailability: Codable, Equatable {
4747
case unavailable
4848
}
4949

50-
/// The diferent availability states that can be declared.
50+
/// The different availability states that can be declared.
5151
/// Unavailable or Available with an introduced version.
5252
enum VersionInformation: Hashable {
5353
case unavailable

Sources/docc/DocCDocumentation.docc/Reference Syntax/Tutorials Syntax/tutorial-syntax.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ Teach developers your Swift APIs through step-by-step, interactive content.
66

77
Use tutorials to deliver interactive documentation for your Swift frameworks and packages. Each tutorial augments your reference documentation by guiding readers through coding exercises that show how to build apps and projects that use your APIs in realistic ways.
88

9-
![A screenshot of the landing page of an example tutorial called SlothCreator. The tutorial text reads ‘Meet SlothCreator. Create, catalog, and care for sloths using SlothCreator. Get started with SlothCreator by building the demo app Slothy.’ There’s an estimated time to comlete the tutorial of 30 minutes, a ‘Get started’ button, and an illustration showing three iPhones with sloth artwork on them.](6_tutorial_toc)
9+
![A screenshot of the landing page of an example tutorial called SlothCreator. The tutorial text reads ‘Meet SlothCreator. Create, catalog, and care for sloths using SlothCreator. Get started with SlothCreator by building the demo app Slothy.’ There’s an estimated time to complete the tutorial of 30 minutes, a ‘Get started’ button, and an illustration showing three iPhones with sloth artwork on them.](6_tutorial_toc)
1010

1111
You write tutorial content in Markdown, and use directives to define specific types of pages and elements, like introductions, sections, steps, and assessments. Then, you run the DocC compiler to render your tutorial in a rich, interactive learning format.
1212

Tests/SwiftDocCUtilitiesTests/ArgumentParsing/DocumentationCoverageKindFilterOptionsTests.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ class KindFilterOptionsTests: XCTestCase {
3838
XCTAssertEqual(BitFlag(string: "initializer"), BitFlag.initializer) // 12
3939
XCTAssertEqual(BitFlag(string: "instance-method"), BitFlag.instanceMethod) // 13
4040
XCTAssertEqual(BitFlag(string: "instance-property"), BitFlag.instanceProperty) // 14
41-
XCTAssertEqual(BitFlag(string: "instance-subcript"), BitFlag.instanceSubscript) // 15
41+
XCTAssertEqual(BitFlag(string: "instance-subscript"), BitFlag.instanceSubscript) // 15
4242
XCTAssertEqual(BitFlag(string: "instance-variable"), BitFlag.instanceVariable) // 16
4343
XCTAssertEqual(BitFlag(string: "type-method"), BitFlag.typeMethod) // 17
4444
XCTAssertEqual(BitFlag(string: "type-property"), BitFlag.typeProperty) // 18

0 commit comments

Comments
 (0)