summaryrefslogtreecommitdiff
path: root/src/eval
diff options
context:
space:
mode:
authorLaurenz <laurmaedje@gmail.com>2020-10-12 18:01:22 +0200
committerLaurenz <laurmaedje@gmail.com>2020-10-12 18:01:22 +0200
commit1a70cb6a330990dc0ab373905d12458ef87afbad (patch)
tree5d82f7124734e146c2d00ce3661294ebe9d91fb4 /src/eval
parent5243878d810d4817c81acc9ae346d46757fcf602 (diff)
Naming and grammar ✔
Diffstat (limited to 'src/eval')
-rw-r--r--src/eval/convert.rs2
-rw-r--r--src/eval/mod.rs4
-rw-r--r--src/eval/value.rs8
3 files changed, 7 insertions, 7 deletions
diff --git a/src/eval/convert.rs b/src/eval/convert.rs
index 69ef2506..4885b72f 100644
--- a/src/eval/convert.rs
+++ b/src/eval/convert.rs
@@ -19,7 +19,7 @@ pub trait Convert: Sized {
/// back the original value.
///
/// In addition to the result, the method can return an optional diagnostic
- /// to warn even when the conversion suceeded or to explain the problem when
+ /// to warn even when the conversion succeeded or to explain the problem when
/// the conversion failed.
///
/// The function takes a `Spanned<Value>` instead of just a `Value` so that
diff --git a/src/eval/mod.rs b/src/eval/mod.rs
index 6f8b3f5b..62ce6c20 100644
--- a/src/eval/mod.rs
+++ b/src/eval/mod.rs
@@ -45,7 +45,7 @@ pub fn eval(tree: &SynTree, state: State) -> Pass<Document> {
pub struct EvalContext {
/// The active evaluation state.
pub state: State,
- /// The accumualted feedback.
+ /// The accumulated feedback.
f: Feedback,
/// The finished page runs.
runs: Vec<Pages>,
@@ -74,7 +74,7 @@ impl EvalContext {
/// Finish evaluation and return the created document.
pub fn finish(self) -> Pass<Document> {
- assert!(self.groups.is_empty(), "unpoped group");
+ assert!(self.groups.is_empty(), "unfinished group");
Pass::new(Document { runs: self.runs }, self.f)
}
diff --git a/src/eval/value.rs b/src/eval/value.rs
index 56dadfc3..c6850f43 100644
--- a/src/eval/value.rs
+++ b/src/eval/value.rs
@@ -125,14 +125,14 @@ impl Debug for Value {
/// ```
pub type ValueDict = Dict<SpannedEntry<Value>>;
-/// An wrapper around a reference-counted executable function value.
+/// An wrapper around a reference-counted function trait object.
///
/// The dynamic function object is wrapped in an `Rc` to keep [`Value`]
-/// clonable.
+/// cloneable.
///
/// _Note_: This is needed because the compiler can't `derive(PartialEq)` for
-/// [`Value`] when directly putting the boxed function in there, see the
-/// [Rust Issue].
+/// [`Value`] when directly putting the `Rc` in there, see the [Rust
+/// Issue].
///
/// [`Value`]: enum.Value.html
/// [Rust Issue]: https://github.com/rust-lang/rust/issues/31740