Skip to content

Commit

Permalink
docs: create constructor docs
Browse files Browse the repository at this point in the history
  • Loading branch information
christolis committed Mar 19, 2024
1 parent aa49ab8 commit 525f249
Showing 1 changed file with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,11 @@ final class FormatCodeCommand implements CodeAction {
private final Formatter formatter = new Formatter();
private final ChatGPTFormatter chatGPTFormatter;

/**
* Initializes a {@link FormatCodeCommand} which formats code.
*
* @param service the {@link ChatGptService} instance to be used for code formatting
*/
public FormatCodeCommand(ChatGptService service) {
this.chatGPTFormatter = new ChatGPTFormatter(service);
}
Expand Down

0 comments on commit 525f249

Please sign in to comment.