Comment types

Report a typo

Match each Go comment with its correct type.

Match the items from left and right columns
// This is a comment
// Print "Hello, Gopher!"
// to the console       
/*                                               
Package gopher provides the HelloGopher() function
that prints a greeting: "Hello Gopher!"           
*/                                               
//go:noinline
Multiline comment
Block comment
Line comment
Compiler directive
___

Create a free account to access the full topic