Skip to content

Commit ea82628

Browse files
committed
[se-0426] fix computed property syntax in example
1 parent 320f997 commit ea82628

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

proposals/0426-bitwise-copyable.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -471,7 +471,7 @@ In the next version of the framework, to expose more information to its clients,
471471
public struct Dish {
472472
public let substrate: Noodle
473473
public let toppings: [Topping]
474-
public let isTopped: Bool { toppings.count > 0 }
474+
public var isTopped: Bool { toppings.count > 0 }
475475
}
476476
```
477477

@@ -486,7 +486,7 @@ public struct Dish {
486486
public let substrate: Noodle
487487
private let toppingOptions: Topping
488488
public let toppings: [Topping] { ... }
489-
public let isTopped: Bool { toppings.count > 0 }
489+
public var isTopped: Bool { toppings.count > 0 }
490490
}
491491
```
492492

0 commit comments

Comments
 (0)