Skip to content

Commit ee0fe7a

Browse files
committedDec 27, 2022
Polished docs for 4.0.0 release.
1 parent 3c92a63 commit ee0fe7a

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed
 

‎README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ use pid::Pid;
3636
let mut pid = Pid::new(15.0, 100.0);
3737
pid.p(10.0, 100.0);
3838

39-
// Input a mesurement with an error of 5.0 from our setpoint
39+
// Input a measurement with an error of 5.0 from our setpoint
4040
let output = pid.next_control_output(10.0);
4141

4242
// Show that the error is correct by multiplying by our kp

‎src/lib.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
//! let mut pid = Pid::new(15.0, 100.0);
1212
//! pid.p(10.0, 100.0);
1313
//!
14-
//! // Input a mesurement with an error of 5.0 from our setpoint
14+
//! // Input a measurement with an error of 5.0 from our setpoint
1515
//! let output = pid.next_control_output(10.0);
1616
//!
1717
//! // Show that the error is correct by multiplying by our kp
@@ -70,7 +70,7 @@ use serde::{Deserialize, Serialize};
7070
/// ```rust
7171
/// use pid::Pid;
7272
///
73-
/// // Create full PID controler
73+
/// // Create full PID controller
7474
/// let mut full_controller = Pid::new(15.0, 100.0);
7575
/// full_controller.p(10.0, 100.0).i(4.5, 100.0).d(0.25, 100.0);
7676
///

0 commit comments

Comments
 (0)