Skip to content

Commit c2c1423

Browse files
authored
Fix typo
Accidentally did cosine in sine part 👎
1 parent b3f09d8 commit c2c1423

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

sin_js.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,5 +11,5 @@ func Cos(x float32) float32 {
1111
}
1212

1313
func Sin(x float32) float32 {
14-
return float32(stdmath.Cos(float64(x)))
14+
return float32(stdmath.Sin(float64(x)))
1515
}

0 commit comments

Comments
 (0)