about summary refs log tree commit diff
path: root/tvix/eval/src/opcode.rs
diff options
context:
space:
mode:
authorVincent Ambo <mail@tazj.in>2022-09-04T22·30+0300
committertazjin <tazjin@tvl.su>2022-09-10T21·57+0000
commit06909f182151cf2332a14909e8b772ab4648854e (patch)
tree08c6a27d35c701202923c051bd145783d4392c75 /tvix/eval/src/opcode.rs
parent83dd706a3ab1b8fb145ca0c578a64dc9bf335153 (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/opcode.rs')
-rw-r--r--tvix/eval/src/opcode.rs10
1 files changed, 5 insertions, 5 deletions
diff --git a/tvix/eval/src/opcode.rs b/tvix/eval/src/opcode.rs
index 565c44a572de..42b8760a1ed4 100644
--- a/tvix/eval/src/opcode.rs
+++ b/tvix/eval/src/opcode.rs
@@ -35,10 +35,10 @@ pub struct Count(pub usize);
 #[warn(variant_size_differences)]
 #[derive(Clone, Copy, Debug)]
 pub enum OpCode {
-    // Push a constant onto the stack.
+    /// Push a constant onto the stack.
     OpConstant(ConstantIdx),
 
-    // Discard a value from the stack.
+    /// Discard a value from the stack.
     OpPop,
 
     // Push a literal value.
@@ -93,13 +93,13 @@ pub enum OpCode {
     // Type assertion operators
     OpAssertBool,
 
-    // Access local identifiers with statically known positions.
+    /// Access local identifiers with statically known positions.
     OpGetLocal(StackIdx),
 
-    // Close scopes while leaving their expression value around.
+    /// Close scopes while leaving their expression value around.
     OpCloseScope(Count), // number of locals to pop
 
-    // Asserts stack top is a boolean, and true.
+    /// Asserts stack top is a boolean, and true.
     OpAssert,
 
     // Lambdas & closures