diff options
author | Vincent Ambo <mail@tazj.in> | 2022-09-04T22·30+0300 |
---|---|---|
committer | tazjin <tazjin@tvl.su> | 2022-09-10T21·57+0000 |
commit | 06909f182151cf2332a14909e8b772ab4648854e (patch) | |
tree | 08c6a27d35c701202923c051bd145783d4392c75 /tvix/eval/src/vm.rs | |
parent | 83dd706a3ab1b8fb145ca0c578a64dc9bf335153 (diff) |
fix(tvix/eval): fix doc comment syntax where applicable r/4786
As pointed out by grfn on cl/6091 Change-Id: I28308577b7cf99dffb4a4fd3cc8783eb9ab4d0d6 Reviewed-on: https://cl.tvl.fyi/c/depot/+/6460 Tested-by: BuildkiteCI Reviewed-by: sterni <sternenseemann@systemli.org>
Diffstat (limited to 'tvix/eval/src/vm.rs')
-rw-r--r-- | tvix/eval/src/vm.rs | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/tvix/eval/src/vm.rs b/tvix/eval/src/vm.rs index a7b9bf3e9206..89702a090fff 100644 --- a/tvix/eval/src/vm.rs +++ b/tvix/eval/src/vm.rs @@ -30,8 +30,8 @@ pub struct VM<'o> { frames: Vec<CallFrame>, stack: Vec<Value>, - // Stack indices of attribute sets from which variables should be - // dynamically resolved (`with`). + /// Stack indices of attribute sets from which variables should be + /// dynamically resolved (`with`). with_stack: Vec<usize>, observer: &'o mut dyn Observer, @@ -560,12 +560,12 @@ impl<'o> VM<'o> { } } - // Construct runtime representation of an attr path (essentially - // just a list of strings). - // - // The difference to the list construction operation is that this - // forces all elements into strings, as attribute set keys are - // required to be strict in Nix. + /// Construct runtime representation of an attr path (essentially + /// just a list of strings). + /// + /// The difference to the list construction operation is that this + /// forces all elements into strings, as attribute set keys are + /// required to be strict in Nix. fn run_attr_path(&mut self, count: usize) -> EvalResult<()> { debug_assert!(count > 1, "AttrPath needs at least two fragments"); let mut path = Vec::with_capacity(count); @@ -588,9 +588,9 @@ impl<'o> VM<'o> { Ok(()) } - // Interpolate string fragments by popping the specified number of - // fragments of the stack, evaluating them to strings, and pushing - // the concatenated result string back on the stack. + /// Interpolate string fragments by popping the specified number of + /// fragments of the stack, evaluating them to strings, and pushing + /// the concatenated result string back on the stack. fn run_interpolate(&mut self, count: usize) -> EvalResult<()> { let mut out = String::new(); |