Skip to content

Commit 37c5d3f

Browse files
authored
Update 0104-improved-integers.md
Fixes wrong variable name in `static func +=(_ lhs: inout Self, rhs: Self)` example.
1 parent e22a2ed commit 37c5d3f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

proposals/0104-improved-integers.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -298,8 +298,8 @@ public protocol Numeric : Equatable, ExpressibleByIntegerLiteral {
298298
/// For example:
299299
///
300300
/// var x = 15
301-
/// y += 7
302-
/// // y == 22
301+
/// x += 7
302+
/// // x == 22
303303
static func +=(_ lhs: inout Self, rhs: Self)
304304

305305
/// Returns the difference of the two given values.

0 commit comments

Comments
 (0)