Skip to content

Commit 89eeddc

Browse files
committed
Minor corrections
1 parent 5d65c5e commit 89eeddc

File tree

2 files changed

+1
-5
lines changed

2 files changed

+1
-5
lines changed

ruminations/002-rumination.md

+1-2
Original file line numberDiff line numberDiff line change
@@ -940,12 +940,11 @@ Note: Rust Geodesy does not support modifying the ellipsoid with an `R` paramete
940940
**Description:**
941941
Take a copy of one or more coordinate dimensions and/or push, pop, roll or swap them onto the stack.
942942

943-
944943
| Argument | Description |
945944
|------------|--------------------------------------------|
946945
| `push=...` | push a comma separated list of coordinate dimensions onto the stack |
947946
| `pop=...` | pop a comma separated list of coordinate dimensions off the stack, into an operand |
948-
| `roll=m,n` | On the sub-stack consisting of the m upper elements, roll n elements from the top, to the bottom of the sub-stack |
947+
| `roll=m,n` | On the sub-stack consisting of the m topmost elements, roll n elements from the top, to the bottom of the sub-stack |
949948
| `swap` | swap the top-of-stack and the next-to-top-of-stack |
950949

951950
The arguments to `push` and `pop` are handled from left to right, i.e. in latin reading order,

src/inner_op/stack.rs

-3
Original file line numberDiff line numberDiff line change
@@ -251,8 +251,6 @@ fn stack_roll(stack: &mut Vec<Vec<f64>>, operands: &mut dyn CoordinateSet, args:
251251
let m = args[0].abs();
252252
let mut n = args[1];
253253
let depth = stack.len();
254-
//dbg!(&stack);
255-
dbg!(&args);
256254

257255
// Negative n: count the number of rolled elements from the bottom,
258256
// i.e. roll 3,-2 = roll 3,1
@@ -275,7 +273,6 @@ fn stack_roll(stack: &mut Vec<Vec<f64>>, operands: &mut dyn CoordinateSet, args:
275273
let e = stack.pop().unwrap();
276274
stack.insert(depth - m, e);
277275
}
278-
//dbg!(&stack);
279276

280277
operands.len()
281278
}

0 commit comments

Comments
 (0)