Skip to content

Commit 6320993

Browse files
authored
Modified type of argument parent in Instance.new constructor (#962)
## Changes I made a simple change to the type of argument 'parent' in `Instance.new` from `Instance` to `Instance?` to accurately reflect that it is not required. ## Checks By submitting your pull request for review, you agree to the following: - [x] This contribution was created in whole or in part by me, and I have the right to submit it under the terms of this repository's open source licenses. - [x] I understand and agree that this contribution and a record of it are public, maintained indefinitely, and may be redistributed under the terms of this repository's open source licenses. - [x] To the best of my knowledge, all proposed changes are accurate.
1 parent b8ec9e6 commit 6320993

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

content/en-us/reference/engine/datatypes/Instance.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ constructors:
3838
summary: |
3939
Class name of the new instance to create.
4040
- name: parent
41-
type: Instance
41+
type: Instance?
4242
default:
4343
summary: |
4444
Optional object to parent the new instance to. Not recommended for performance reasons (see description above).

0 commit comments

Comments
 (0)