---
layout: docs
title: closeBrace
id: class.Facebook.HackCodegen.HackBuilder.closeBrace
docid: class.Facebook.HackCodegen.HackBuilder.closeBrace
permalink: /docs/reference/class.Facebook.HackCodegen.HackBuilder.closeBrace/
---
# Facebook\\HackCodegen\\HackBuilder::closeBrace()




Close a brace in a new line and sets one less level of indentation




``` Hack
public function closeBrace(): this;
```




## Returns




- ` this `