Skip to content

Commit

Permalink
docs: correct typos present in docs/comments (#11145)
Browse files Browse the repository at this point in the history
  • Loading branch information
shollyman authored Nov 16, 2024
1 parent 8823f23 commit 5af186e
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion bigquery/benchmarks/bench.go
Original file line number Diff line number Diff line change
Expand Up @@ -288,7 +288,7 @@ func main() {
var createTable = flag.Bool("create_table", false, "create result table if it does not exist")

var tags tags
flag.Var(&tags, "tag", "an optional key and value seperated by colon (:) character")
flag.Var(&tags, "tag", "an optional key and value separated by colon (:) character")
flag.Parse()

// Validate flags.
Expand Down
2 changes: 1 addition & 1 deletion bigquery/iterator.go
Original file line number Diff line number Diff line change
Expand Up @@ -324,7 +324,7 @@ func fetchTableResultPage(ctx context.Context, src *rowSource, schema Schema, st
}

func fetchJobResultPage(ctx context.Context, src *rowSource, schema Schema, startIndex uint64, pageSize int64, pageToken string) (*fetchPageResult, error) {
// reduce data transfered by leveraging api projections
// reduce data transferred by leveraging api projections
projectedFields := []googleapi.Field{"rows", "pageToken", "totalRows"}
call := src.j.c.bqs.Jobs.GetQueryResults(src.j.projectID, src.j.jobID).Location(src.j.location).Context(ctx)
call = call.FormatOptionsUseInt64Timestamp(true)
Expand Down
4 changes: 2 additions & 2 deletions bigquery/storage/managedwriter/connection.go
Original file line number Diff line number Diff line change
Expand Up @@ -357,7 +357,7 @@ func (co *connection) lockingAppend(pw *pendingWrite) error {

// critical section: Things that need to happen inside the critical section:
//
// * get/open conenction
// * get/open connection
// * issue the append
// * add the pending write to the channel for the connection (ordering for the response)
co.mu.Lock()
Expand Down Expand Up @@ -462,7 +462,7 @@ func (co *connection) lockingAppend(pw *pendingWrite) error {

// getStream returns either a valid ARC client stream or permanent error.
//
// Any calls to getStream should do so in possesion of the critical section lock.
// Any calls to getStream should do so in possession of the critical section lock.
func (co *connection) getStream(arc *storagepb.BigQueryWrite_AppendRowsClient, forceReconnect bool) (*storagepb.BigQueryWrite_AppendRowsClient, chan *pendingWrite, error) {
if co.err != nil {
return nil, nil, co.err
Expand Down
2 changes: 1 addition & 1 deletion bigquery/storage/managedwriter/routers_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -438,7 +438,7 @@ func BenchmarkWatchdogPulse(b *testing.B) {
b.Fatalf("(@%d-@%d): activateRouter: %v", numWriters, numConnections, err)
}
// now, set router as multiplex. We do this to avoid router activation starting the watchdog
// in a seperate goroutine.
// in a separate goroutine.
router.multiplex = true

var writers []*ManagedStream
Expand Down

0 comments on commit 5af186e

Please sign in to comment.