Displays the author of the current comment.

Signature

comment_author( $comment_ID = 0 )
comment_ID
 (int) Optional. The ID of the comment for which to print the author. Default current comment.
Default: 0

Return

(void)

Source

function comment_author( $comment_ID = 0 ) {
	$author = get_comment_author( $comment_ID );
	/**
	 * Filter the comment author's name for display.
	 *
	 * @since 1.2.0
	 *
	 * @param string $author The comment author's username.
	 */
	$author = apply_filters( 'comment_author', $author );
	echo $author;
}
WP Trac GitHub

Link here