Skip to content

Commit a1bd338

Browse files
authored
Fix link to NonFinalGenericMethods docs in the Existentials doc (#177)
The original version was broken in two ways: 1. On docs.swift.org, the link points to non-existent https://docs.swift.org/embedded/documentation/embedded/existentials/NonFinalGenericMethods.md 2. In a locally generated DocC archive, the link points to non-existent https://developer.apple.com/documentation/embeddedswift/NonFinalGenericMethods, rather than the page in the same documentation archive
1 parent d7d59b2 commit a1bd338

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Sources/EmbeddedSwift/Documentation.docc/UsingEmbeddedSwift/Existentials.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ let concrete = existential as! Derived // ✅, and will trap at runtime if a dif
5151

5252
Class-bound existentials in Embedded Swift do come with some restrictions compared to class-bound existentials in regular Swift:
5353

54-
- You cannot use an existential to call a unbounded generic method from the protocol. This is described in depth in [Embedded Swift -- Non-final generic methods](NonFinalGenericMethods.md). For example:
54+
- You cannot use an existential to call a unbounded generic method from the protocol. This is described in depth in <doc:NonFinalGenericMethods>. For example:
5555
```swift
5656
protocol ClassBoundProtocol: AnyObject {
5757
func foo<T>(t: T)

0 commit comments

Comments
 (0)