Correct phrasing in SDK documentation (#1254)

* Correct phrasing in SDK documentation

* Fix typos in Go instructions

Fix typos in Go instructions
This commit is contained in:
jjpinto
2026-04-01 19:02:19 -04:00
committed by GitHub
parent ca87cfcc9e
commit eb5cff89fa
2 changed files with 6 additions and 6 deletions

View File

@@ -123,7 +123,7 @@ session, err := client.ResumeSessionWithOptions("session-id", &copilot.ResumeSes
### Event Subscription Pattern
ALWAYS use channels or done signals for waiting on session events:
ALWAYS use channels or done signals to wait for session events:
```go
done := make(chan struct{})
@@ -381,7 +381,7 @@ session2.Send(copilot.MessageOptions{Prompt: "Hello from session 2"})
## Bring Your Own Key (BYOK)
Use custom API providers via `ProviderConfig`:
Use custom API providers by configuring `ProviderConfig`:
```go
session, err := client.CreateSession(&copilot.SessionConfig{
@@ -437,7 +437,7 @@ session.On(func(evt copilot.SessionEvent) {
## Connectivity Testing
Use Ping to verify server connectivity:
Use `Ping` to verify server connectivity:
```go
resp, err := client.Ping("test message")