Skip to content

Commit

Permalink
chore: adjust typos
Browse files Browse the repository at this point in the history
  • Loading branch information
BytePender committed Dec 30, 2024
1 parent 5a133c9 commit 08aa10d
Show file tree
Hide file tree
Showing 5 changed files with 23 additions and 10 deletions.
17 changes: 17 additions & 0 deletions .licenserc.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,23 @@ header:
spdx-id: Apache-2.0
copyright-owner: CloudWeGo Authors

template: |
/*
* Copyright {{ .Year }} CloudWeGo Authors
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
paths:
- '**/*.go'
- '**/*.s'
Expand Down
4 changes: 0 additions & 4 deletions _typos.toml
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,6 @@ Invokable = "Invokable"
invokable = "invokable"
InvokableLambda = "InvokableLambda"
InvokableRun = "InvokableRun"
outter = "outter"
Opion = "Opion"
TOpion = "TOpion"
renderring = "renderring"

[files]
extend-exclude = ["go.mod", "go.sum", "check_branch_name.sh"]
6 changes: 3 additions & 3 deletions compose/chain_branch_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -63,9 +63,9 @@ func TestChainBranch(t *testing.T) {
return in + in + in, nil
})))

outter := NewChain[string, string]()
outter.AppendGraph(inner)
_, err := outter.Compile(context.Background())
outer := NewChain[string, string]()
outer.AppendGraph(inner)
_, err := outer.Compile(context.Background())
assert.Error(t, err)
})

Expand Down
4 changes: 2 additions & 2 deletions compose/runnable.go
Original file line number Diff line number Diff line change
Expand Up @@ -314,8 +314,8 @@ func streamByInvoke[I, O, TOption any](i Invoke[I, O, TOption]) Stream[I, O, TOp
}
}

func streamByCollect[I, O, TOpion any](c Collect[I, O, TOpion]) Stream[I, O, TOpion] {
return func(ctx context.Context, input I, opts ...TOpion) (output *schema.StreamReader[O], err error) {
func streamByCollect[I, O, TOption any](c Collect[I, O, TOption]) Stream[I, O, TOption] {
return func(ctx context.Context, input I, opts ...TOption) (output *schema.StreamReader[O], err error) {
action := actionStreamByCollect

srInput := schema.StreamReaderFromArray([]I{input})
Expand Down
2 changes: 1 addition & 1 deletion schema/message.go
Original file line number Diff line number Diff line change
Expand Up @@ -340,7 +340,7 @@ func formatContent(content string, vs map[string]any, formatType FormatType) (st
}
}

// Format returns the messages after renderring by the given formatType.
// Format returns the messages after rendering by the given formatType.
// e.g.
//
// msg := schema.UserMessage("hello world, {name}")
Expand Down

0 comments on commit 08aa10d

Please sign in to comment.