Skip to content

Commit

Permalink
Merge pull request ethereum#13814 from Saw-mon-and-Natalie/typo/types…
Browse files Browse the repository at this point in the history
…-comments

Fixed some comments in `Types.h`
  • Loading branch information
cameel authored Dec 17, 2022
2 parents b053359 + e295964 commit 73fcf69
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions libsolidity/ast/Types.h
Original file line number Diff line number Diff line change
Expand Up @@ -802,14 +802,14 @@ class ArrayType: public ReferenceType
/// Constructor for a byte array ("bytes") and string.
explicit ArrayType(DataLocation _location, bool _isString = false);

/// Constructor for a dynamically sized array type ("type[]")
/// Constructor for a dynamically sized array type ("<type>[]")
ArrayType(DataLocation _location, Type const* _baseType):
ReferenceType(_location),
m_baseType(copyForLocationIfReference(_baseType))
{
}

/// Constructor for a fixed-size array type ("type[20]")
/// Constructor for a fixed-size array type ("<type>[<length>]")
ArrayType(DataLocation _location, Type const* _baseType, u256 _length):
ReferenceType(_location),
m_baseType(copyForLocationIfReference(_baseType)),
Expand Down

0 comments on commit 73fcf69

Please sign in to comment.