Skip to content

Commit cf7acb4

Browse files
committed
update docs
1 parent 8936a14 commit cf7acb4

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

stream.go

+3-3
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ var errorMsgs = map[int]string{
5050
ErrCloseTooManyRequests: "Too many requests. The number of concurrent connections exceeded the limit. Contact customer support to increase it.",
5151
}
5252

53-
// A close message from rev see https://www.rev.ai/docs/streaming#section/Error-Codes
53+
// RevError represents a close message from rev see https://www.rev.ai/docs/streaming#section/Error-Codes
5454
type RevError struct {
5555
// Error code
5656
Code int
@@ -59,7 +59,7 @@ type RevError struct {
5959
Text string
6060
}
6161

62-
// A retriable eror
62+
// RetriableError represnts retriable stream error
6363
type RetriableError struct {
6464
// Error code
6565
Code int
@@ -153,7 +153,7 @@ func (c *Conn) Recv() (*StreamMessage, error) {
153153
}
154154
}
155155

156-
// Send EOS to let Rev know we are done. see https://www.rev.ai/docs/streaming#section/Client-to-Rev.ai-Input/Sending-Audio-to-Rev.ai
156+
// WriteDone sends EOS to let Rev know we are done. see https://www.rev.ai/docs/streaming#section/Client-to-Rev.ai-Input/Sending-Audio-to-Rev.ai
157157
func (c *Conn) WriteDone() error {
158158
c.stateLock.Lock()
159159
if c.state != StateDone {

0 commit comments

Comments
 (0)