Skip to content

Commit 48d292e

Browse files
committed
Merge branch 'master' of github.com:apple/swift-evolution
2 parents 99316a7 + 38b178e commit 48d292e

File tree

2 files changed

+11
-11
lines changed

2 files changed

+11
-11
lines changed

proposals/0104-improved-integers.md

Lines changed: 8 additions & 8 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.
@@ -319,8 +319,8 @@ public protocol Numeric : Equatable, ExpressibleByIntegerLiteral {
319319
/// For example:
320320
///
321321
/// var x = 15
322-
/// y -= 7
323-
/// // y == 8
322+
/// x -= 7
323+
/// // x == 8
324324
static func -=(_ lhs: inout Self, rhs: Self)
325325

326326
/// Returns the product of the two given values.
@@ -340,8 +340,8 @@ public protocol Numeric : Equatable, ExpressibleByIntegerLiteral {
340340
/// For example:
341341
///
342342
/// var x = 15
343-
/// y *= 7
344-
/// // y == 105
343+
/// x *= 7
344+
/// // x == 105
345345
static func *=(_ lhs: inout Self, rhs: Self)
346346
}
347347

@@ -573,8 +573,8 @@ public protocol BinaryInteger :
573573
/// For example:
574574
///
575575
/// var x = 15
576-
/// y /= 7
577-
/// // y == 2
576+
/// x /= 7
577+
/// // x == 2
578578
static func /=(_ lhs: inout Self, rhs: Self)
579579

580580
/// Returns the remainder of dividing the first value by the second.

proposals/0173-swap-indices.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ As part of the introduction of the Law of Exclusivity, the current `swap(_:_:)`
1111
function must be addressed, as this most common uses of `swap` directly violate
1212
the law. This proposal introduces an alternative: a method on
1313
`MutableCollection` that takes two indices for swapping two elements in the
14-
same collection,.
14+
same collection.
1515

1616
## Motivation
1717

@@ -25,11 +25,11 @@ some typical usage from that file:
2525
swap(&elements[lo], &elements[hi])
2626
```
2727

28-
Under changes proposed as part of the ownership manfifesto, this will no longer
28+
Under changes proposed as part of the ownership manifesto, this will no longer
2929
be legal Swift: a single variable (in this case, `elements`) cannot be passed
3030
as two different `inout` arguments to the same function.
3131

32-
For more background on exclusivity and ownership, see the [manfiesto](https://github.com/apple/swift/blob/master/docs/OwnershipManifesto.md)
32+
For more background on exclusivity and ownership, see the [manifesto](https://github.com/apple/swift/blob/master/docs/OwnershipManifesto.md)
3333

3434
## Proposed solution
3535

0 commit comments

Comments
 (0)