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




Add a //-style comment




``` Hack
public function addInlineComment(
  ?string $comment,
): this;
```




## Parameters




* ` ?string $comment `




## Returns




- ` this `