Skip to content

Commit be2f47b

Browse files
authored
Merge pull request #116 from ka8725/fix-documentation
Fix documentation: array cannot be used
2 parents 3268846 + ef563b3 commit be2f47b

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)