Skip to content

Commit 92283bb

Browse files
committed
docs: adjust example code to remove horizontal scroll bar
This change adjusts the code example in readme so if you view it in github it won't show a horizontal scroll bar in code example. It's trivial change, but I believe it's still an improvement.
1 parent 8c42b69 commit 92283bb

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

README.md

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,10 @@ type Output struct {
6666
Greeting string `json:"greeting" jsonschema:"the greeting to tell to the user"`
6767
}
6868

69-
func SayHi(ctx context.Context, req *mcp.CallToolRequest, input Input) (*mcp.CallToolResult, Output, error) {
69+
func SayHi(ctx context.Context, req *mcp.CallToolRequest, input Input) (
70+
*mcp.CallToolResult,
71+
Output, error,
72+
) {
7073
return nil, Output{Greeting: "Hi " + input.Name}, nil
7174
}
7275

0 commit comments

Comments
 (0)