Skip to content

Commit 8516275

Browse files
authored
Merge pull request #70821 from apple/dl/stdlib-Correct-String-initializer-reference-in-print-docs
[stdlib] Correct String initializer reference in `print` docs
2 parents d28bd9a + b4feec6 commit 8516275

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

stdlib/public/core/Print.swift

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -17,9 +17,9 @@
1717
///
1818
/// You can pass zero or more items to the `print(_:separator:terminator:)`
1919
/// function. The textual representation for each item is the same as that
20-
/// obtained by calling `String(item)`. The following example prints a string,
21-
/// a closed range of integers, and a group of floating-point values to
22-
/// standard output:
20+
/// obtained by calling `String(describing: item)`. The following example
21+
/// prints a string, a closed range of integers, and a group of floating-point
22+
/// values to standard output:
2323
///
2424
/// print("One two three four five")
2525
/// // Prints "One two three four five"
@@ -128,8 +128,8 @@ public func debugPrint(
128128
///
129129
/// You can pass zero or more items to the `print(_:separator:terminator:to:)`
130130
/// function. The textual representation for each item is the same as that
131-
/// obtained by calling `String(item)`. The following example prints a closed
132-
/// range of integers to a string:
131+
/// obtained by calling `String(describing: item)`. The following example
132+
/// prints a closed range of integers to a string:
133133
///
134134
/// var range = "My range: "
135135
/// print(1...5, to: &range)

0 commit comments

Comments
 (0)