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




``` Hack
public function setCommentf(
  HH\Lib\Str\SprintfFormatString $format,
  mixed ...$args,
): this;
```




## Parameters




+ ` HH\Lib\Str\SprintfFormatString $format `
+ ` mixed ...$args `




## Returns




* ` this `