Merge pull request #13814 from Saw-mon-and-Natalie/typo/types-comments

Fixed some comments in `Types.h`
This commit is contained in:
Kamil Śliwak 2022-12-17 02:53:56 +01:00 committed by GitHub
commit 73fcf69188
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -802,14 +802,14 @@ public:
/// 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)),