diff --git a/docs/data_and_struct.md b/docs/data_and_struct.md index d32083d32..2de695d96 100644 --- a/docs/data_and_struct.md +++ b/docs/data_and_struct.md @@ -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