ScriptEditorService Example Codeblock is formatted incorrectly

It should be:

game:GetService("ScriptEditorService").TextDocumentDidOpen:Connect(function(doc) 
	print("Opened", doc)
end)

and not:

game:GetService("ScriptEditorService").TextDocumentDidChange:Connect(
	function(doc, changes) 
		print("Changed", doc, changes) 
	end)

Found on page,


Page URL: https://create.roblox.com/docs/reference/engine/classes/ScriptEditorService#TextDocumentDidOpen

1 Like

Hi there, thanks for reporting. We recently did a pass on a huge number of code samples, so the indentation here should be toned down. :smile:

1 Like