Skip to content

Commit ef563b3

Browse files
committed
Fix documentation: array cannot be used
1 parent 3268846 commit ef563b3

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/dry/struct/class_interface.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -63,8 +63,8 @@ def inherited(klass)
6363
# @example with a nested array of structs
6464
# class Language < Dry::Struct
6565
# attribute :name, Types::String
66-
# array :versions, Types::String
67-
# array :celebrities, Types::Array.of(Dry::Struct) do
66+
# attribute :versions, Types::Array.of(Types::String)
67+
# attribute :celebrities, Types::Array.of(Dry::Struct) do
6868
# attribute :name, Types::String
6969
# attribute :pseudonym, Types::String
7070
# end

0 commit comments

Comments
 (0)