Skip to content

Commit 4c1a37a

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 4c1a37a

File tree

2 files changed

+10
-2
lines changed

2 files changed

+10
-2
lines changed

README.md

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,11 @@ 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,
72+
error,
73+
) {
7074
return nil, Output{Greeting: "Hi " + input.Name}, nil
7175
}
7276

internal/readme/server/server.go

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,11 @@ type Output struct {
2020
Greeting string `json:"greeting" jsonschema:"the greeting to tell to the user"`
2121
}
2222

23-
func SayHi(ctx context.Context, req *mcp.CallToolRequest, input Input) (*mcp.CallToolResult, Output, error) {
23+
func SayHi(ctx context.Context, req *mcp.CallToolRequest, input Input) (
24+
*mcp.CallToolResult,
25+
Output,
26+
error,
27+
) {
2428
return nil, Output{Greeting: "Hi " + input.Name}, nil
2529
}
2630

0 commit comments

Comments
 (0)