Fix typos in the README and in comments

This commit is contained in:
Christian Rocha 2021-07-19 20:28:12 -04:00
parent 1de2016a3a
commit 3c94e02dc9
No known key found for this signature in database
GPG Key ID: D6CC7A16E5878018
2 changed files with 4 additions and 4 deletions

View File

@ -11,7 +11,7 @@ A simple, efficient spring animation library for smooth, natural motion.
<img src="https://stuff.charm.sh/harmonica/harmonica-opengl.gif" width="400" alt="Harmonica OpenGL Demo">
Harmonica is framework agnostic and works well in 2D and 3D contexts.
Harmonica is framework-agnostic and works well in 2D and 3D contexts.
```go
import "github.com/charmbracelet/harmonica"

View File

@ -91,7 +91,7 @@ var epsilon = math.Nextafter(1, 2) - 1
//
// Example:
//
// // First precomute spring coefficients based on your settings:
// // First precompute spring coefficients based on your settings:
// var x, xVel, y, yVel float
// deltaTime := FPS(60)
// s := NewSpring(deltaTime, 5.0, 0.2)
@ -105,8 +105,8 @@ type Spring struct {
velPosCoef, velVelCoef float64
}
// New initializes a new Spring, computing the parameters needed to simulate
// a damped spring over a given period of time.
// NewSpring initializes a new Spring, computing the parameters needed to
// simulate a damped spring over a given period of time.
//
// The delta time is the time step to advance; essentially the framerate.
//