Skip to content

Commit f84136a

Browse files
committed
stdlib: update doc comments for recent language changes
1 parent 1f81949 commit f84136a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

stdlib/public/core/Policy.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,11 +27,11 @@
2727
/// closure, function, or method that doesn't return a value.
2828
///
2929
/// // No return type declared:
30-
/// func logMessage(s: String) {
30+
/// func logMessage(_ s: String) {
3131
/// print("Message: \(s)")
3232
/// }
3333
///
34-
/// let logger: String -> Void = logMessage
34+
/// let logger: (String) -> Void = logMessage
3535
/// logger("This is a void function")
3636
/// // Prints "Message: This is a void function"
3737
public typealias Void = ()

0 commit comments

Comments
 (0)