Skip to content

Commit

Permalink
Merge pull request #1586 from yui-knk/update_data_and_struct_guide
Browse files Browse the repository at this point in the history
Add comments in the case of Struct
  • Loading branch information
soutaro authored Oct 30, 2023
2 parents e7630be + 320d20e commit d090d9a
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions docs/data_and_struct.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,10 @@ Unfortunately, supporting `Data` and `Struct` in RBS is not straightforward. You

```rbs
class Measure
# `attr_accessor amount: Integer` in the case of Struct
attr_reader amount: Integer
# `attr_accessor unit: String` in the case of Struct
attr_reader unit: String
def initialize: (Integer amount, String unit) -> void
Expand Down

0 comments on commit d090d9a

Please sign in to comment.