Skip to content

Commit 1a7146f

Browse files
authored
Merge pull request #58867 from amartini51/binaryString_93165742
Correct the expected output in an example
2 parents 8556e83 + 950b716 commit 1a7146f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

stdlib/public/core/Integers.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1878,7 +1878,7 @@ extension BinaryInteger {
18781878
/// print(Int16.max.binaryString)
18791879
/// // Prints "0b01111111_11111111"
18801880
/// print((101 as UInt8).binaryString)
1881-
/// // Prints "0b11001001"
1881+
/// // Prints "0b01100101"
18821882
///
18831883
/// The `binaryString` implementation uses the static `bitWidth` property and
18841884
/// the right shift operator (`>>`), both of which are available to any type

0 commit comments

Comments
 (0)