Skip to content

Commit

Permalink
[docs] UnderscoredAttributes.md: Prettify code in @_hasStorage.
Browse files Browse the repository at this point in the history
  • Loading branch information
YOCKOW authored Aug 3, 2021
1 parent 7fb85c3 commit be35884
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/ReferenceGuides/UnderscoredAttributes.md
Original file line number Diff line number Diff line change
Expand Up @@ -209,7 +209,7 @@ Marks a property as being a stored property in a swiftinterface.
For `@frozen` types, the compiler needs to be able to tell whether a particular
property is stored or computed to correctly perform type layout.

```
```swift
@frozen struct S {
@_hasStorage var x: Int { get set } // stored
var y: Int { get set } // computed
Expand Down

0 comments on commit be35884

Please sign in to comment.