소스 검색

pipoint: fix some spelling mistakes.

Michael Hope 8 달 전
부모
커밋
f9385e2ffd
3개의 변경된 파일3개의 추가작업 그리고 3개의 파일을 삭제
  1. 1 1
      filter.go
  2. 1 1
      latlon.go
  3. 1 1
      param_test.go

+ 1 - 1
filter.go 파일 보기

@@ -22,7 +22,7 @@ type Lowpass struct {
22 22
 }
23 23
 
24 24
 // StepEx feeds v into the filter and returns the filtered value.  Tau
25
-// is the filter coefficent, where 1.0 is no filtering and 0.0 is no
25
+// is the filter coefficient, where 1.0 is no filtering and 0.0 is no
26 26
 // pass through.
27 27
 func (l *Lowpass) StepEx(v, tau float64) float64 {
28 28
 	l.Acc = tau*v + (1-tau)*l.Acc

+ 1 - 1
latlon.go 파일 보기

@@ -46,7 +46,7 @@ func AsRad(deg float64) float64 {
46 46
 	return deg * (math.Pi / 180)
47 47
 }
48 48
 
49
-// AsDeg convers radians to degrees.
49
+// AsDeg converts radians to degrees.
50 50
 func AsDeg(rad float64) float64 {
51 51
 	return rad * (180 / math.Pi)
52 52
 }

+ 1 - 1
param_test.go 파일 보기

@@ -90,6 +90,6 @@ func TestParamNumber(t *testing.T) {
90 90
 	p.SetInt(17)
91 91
 	assert.Equal(t, p.GetInt(), 17)
92 92
 
93
-	// Setting to a non-number casues an error.
93
+	// Setting to a non-number causes an error.
94 94
 	assert.Error(t, p.Set(&TestParamStructT{}))
95 95
 }