Skip to content

Commit 33f614f

Browse files
authored
Fix typos (#745)
1 parent fb6792b commit 33f614f

File tree

12 files changed

+20
-20
lines changed

12 files changed

+20
-20
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -162,11 +162,11 @@ func main() {
162162
* [Visually.io](https://visually.io) employs Expr as a business rule engine for its personalization targeting algorithm.
163163
* [Akvorado](https://github.com/akvorado/akvorado) utilizes Expr to classify exporters and interfaces in network flows.
164164
* [keda.sh](https://keda.sh) uses Expr to allow customization of its Kubernetes-based event-driven autoscaling.
165-
* [Span Digital](https://spandigital.com/) uses Expr in it's Knowledge Management products.
165+
* [Span Digital](https://spandigital.com/) uses Expr in its Knowledge Management products.
166166
* [Xiaohongshu](https://www.xiaohongshu.com/) combining yaml with Expr for dynamically policies delivery.
167167
* [Melrōse](https://melrōse.org) uses Expr to implement its music programming language.
168168
* [Tork](https://www.tork.run/) integrates Expr into its workflow execution.
169-
* [Critical Moments](https://criticalmoments.io) uses Expr for it's mobile realtime conditional targeting system.
169+
* [Critical Moments](https://criticalmoments.io) uses Expr for its mobile realtime conditional targeting system.
170170
* [WoodpeckerCI](https://woodpecker-ci.org) uses Expr for [filtering workflows/steps](https://woodpecker-ci.org/docs/usage/workflow-syntax#evaluate).
171171
* [FastSchema](https://github.com/fastschema/fastschema) - A BaaS leveraging Expr for its customizable and dynamic Access Control system.
172172

docs/language-definition.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -691,7 +691,7 @@ concat([1, 2], [3, 4]) == [1, 2, 3, 4]
691691

692692
### flatten(array) {#flatten}
693693

694-
Flattens given array into one-dimentional array.
694+
Flattens given array into one-dimensional array.
695695

696696
```expr
697697
flatten([1, 2, [3, 4]]) == [1, 2, 3, 4]

internal/spew/common.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ func catchPanic(w io.Writer, v reflect.Value) {
7878
}
7979

8080
// handleMethods attempts to call the Error and String methods on the underlying
81-
// type the passed reflect.Value represents and outputes the result to Writer w.
81+
// type the passed reflect.Value represents and outputs the result to Writer w.
8282
//
8383
// It handles panics in any called methods by catching and displaying the error
8484
// as the formatted value.
@@ -100,7 +100,7 @@ func handleMethods(cs *ConfigState, w io.Writer, v reflect.Value) (handled bool)
100100
// Choose whether or not to do error and Stringer interface lookups against
101101
// the base type or a pointer to the base type depending on settings.
102102
// Technically calling one of these methods with a pointer receiver can
103-
// mutate the value, however, types which choose to satisify an error or
103+
// mutate the value, however, types which choose to satisfy an error or
104104
// Stringer interface with a pointer receiver should not be mutating their
105105
// state inside these interface methods.
106106
if !cs.DisablePointerMethods && !UnsafeDisabled && !v.CanAddr() {

internal/spew/common_test.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -154,7 +154,7 @@ func helpTestSortValues(tests []sortTestCase, cs *spew.ConfigState, t *testing.T
154154
}
155155
}
156156

157-
// TestSortValues ensures the sort functionality for relect.Value based sorting
157+
// TestSortValues ensures the sort functionality for reflect.Value based sorting
158158
// works as intended.
159159
func TestSortValues(t *testing.T) {
160160
v := reflect.ValueOf
@@ -228,7 +228,7 @@ func TestSortValues(t *testing.T) {
228228
helpTestSortValues(tests, &cs, t)
229229
}
230230

231-
// TestSortValuesWithMethods ensures the sort functionality for relect.Value
231+
// TestSortValuesWithMethods ensures the sort functionality for reflect.Value
232232
// based sorting works as intended when using string methods.
233233
func TestSortValuesWithMethods(t *testing.T) {
234234
v := reflect.ValueOf
@@ -263,7 +263,7 @@ func TestSortValuesWithMethods(t *testing.T) {
263263
helpTestSortValues(tests, &cs, t)
264264
}
265265

266-
// TestSortValuesWithSpew ensures the sort functionality for relect.Value
266+
// TestSortValuesWithSpew ensures the sort functionality for reflect.Value
267267
// based sorting works as intended when using spew to stringify keys.
268268
func TestSortValuesWithSpew(t *testing.T) {
269269
v := reflect.ValueOf

internal/spew/config.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ type ConfigState struct {
5959
//
6060
// NOTE: This might be an unsafe action since calling one of these methods
6161
// with a pointer receiver could technically mutate the value, however,
62-
// in practice, types which choose to satisify an error or Stringer
62+
// in practice, types which choose to satisfy an error or Stringer
6363
// interface with a pointer receiver should not be mutating their state
6464
// inside these interface methods. As a result, this option relies on
6565
// access to the unsafe package, so it will not have any effect when
@@ -228,7 +228,7 @@ types similar to the standard %v format specifier.
228228
229229
The custom formatter only responds to the %v (most compact), %+v (adds pointer
230230
addresses), %#v (adds types), and %#+v (adds types and pointer addresses) verb
231-
combinations. Any other verbs such as %x and %q will be sent to the the
231+
combinations. Any other verbs such as %x and %q will be sent to the
232232
standard fmt package for formatting. In addition, the custom formatter ignores
233233
the width and precision arguments (however they will still work on the format
234234
specifiers not handled by the custom formatter).

internal/spew/doc.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -169,7 +169,7 @@ standard %v format specifier.
169169
170170
The custom formatter only responds to the %v (most compact), %+v (adds pointer
171171
addresses), %#v (adds types), or %#+v (adds types and pointer addresses) verb
172-
combinations. Any other verbs such as %x and %q will be sent to the the
172+
combinations. Any other verbs such as %x and %q will be sent to the
173173
standard fmt package for formatting. In addition, the custom formatter ignores
174174
the width and precision arguments (however they will still work on the format
175175
specifiers not handled by the custom formatter).

internal/spew/dumpcgo_test.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
// NOTE: Due to the following build constraints, this file will only be compiled
1616
// when both cgo is supported and "-tags testcgo" is added to the go test
1717
// command line. This means the cgo tests are only added (and hence run) when
18-
// specifially requested. This configuration is used because spew itself
18+
// specifically requested. This configuration is used because spew itself
1919
// does not require cgo to run even though it does handle certain cgo types
2020
// specially. Rather than forcing all clients to require cgo and an external
2121
// C compiler just to run the tests, this scheme makes them optional.
@@ -90,7 +90,7 @@ func addCgoDumpTests() {
9090
addDumpTest(v5, "("+v5t+") "+v5s+"\n", "("+v5t2+") "+v5s+"\n")
9191

9292
// C typedefed unsigned char array.
93-
v6, v6l, v6c := testdata.GetCgoTypdefedUnsignedCharArray()
93+
v6, v6l, v6c := testdata.GetCgoTypedefedUnsignedCharArray()
9494
v6Len := fmt.Sprintf("%d", v6l)
9595
v6Cap := fmt.Sprintf("%d", v6c)
9696
v6t := "[6]testdata._Ctype_custom_uchar_t"

internal/spew/format.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,7 @@ func (f *formatState) formatPtr(v reflect.Value) {
121121
// Keep list of all dereferenced pointers to possibly show later.
122122
pointerChain := make([]uintptr, 0)
123123

124-
// Figure out how many levels of indirection there are by derferencing
124+
// Figure out how many levels of indirection there are by dereferencing
125125
// pointers and unpacking interfaces down the chain while detecting circular
126126
// references.
127127
nilFound := false
@@ -405,7 +405,7 @@ types similar to the standard %v format specifier.
405405
406406
The custom formatter only responds to the %v (most compact), %+v (adds pointer
407407
addresses), %#v (adds types), or %#+v (adds types and pointer addresses) verb
408-
combinations. Any other verbs such as %x and %q will be sent to the the
408+
combinations. Any other verbs such as %x and %q will be sent to the
409409
standard fmt package for formatting. In addition, the custom formatter ignores
410410
the width and precision arguments (however they will still work on the format
411411
specifiers not handled by the custom formatter).

internal/spew/internal_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
*/
1616

1717
/*
18-
This test file is part of the spew package rather than than the spew_test
18+
This test file is part of the spew package rather than the spew_test
1919
package because it needs access to internals to properly test certain cases
2020
which are not possible via the public interface since they should never happen.
2121
*/

internal/spew/internalunsafe_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
// +build !js,!appengine,!safe,!disableunsafe,go1.4
2121

2222
/*
23-
This test file is part of the spew package rather than than the spew_test
23+
This test file is part of the spew package rather than the spew_test
2424
package because it needs access to internals to properly test certain cases
2525
which are not possible via the public interface since they should never happen.
2626
*/

0 commit comments

Comments
 (0)