about summary refs log tree commit diff stats
path: root/cpp/021arithmetic
diff options
context:
space:
mode:
authorKartik K. Agaram <vc@akkartik.com>2015-04-18 20:11:59 -0700
committerKartik K. Agaram <vc@akkartik.com>2015-04-18 20:11:59 -0700
commit0b82eef7140123e29e2628232e3cc7f740d094f2 (patch)
tree16057bdbcd64d1b365e9ee67a3cd2b36cec16ce0 /cpp/021arithmetic
parent49073ebeef77aea075728953a9fb05d968e1c46a (diff)
downloadmu-0b82eef7140123e29e2628232e3cc7f740d094f2.tar.gz
1099 - new recipe: convert integer to decimal string
Diffstat (limited to 'cpp/021arithmetic')
-rw-r--r--cpp/021arithmetic6
1 files changed, 3 insertions, 3 deletions
diff --git a/cpp/021arithmetic b/cpp/021arithmetic
index 6f7fb1f3..a5ca095a 100644
--- a/cpp/021arithmetic
+++ b/cpp/021arithmetic
@@ -177,7 +177,7 @@ recipe main [
 :(before "End Primitive Recipe Declarations")
 DIVIDE_WITH_REMAINDER,
 :(before "End Primitive Recipe Numbers")
-Recipe_number["divide_with_remainder"] = DIVIDE_WITH_REMAINDER;
+Recipe_number["divide-with-remainder"] = DIVIDE_WITH_REMAINDER;
 :(before "End Primitive Recipe Implementations")
 case DIVIDE_WITH_REMAINDER: {
   trace("run") << "ingredient 0 is " << instructions[pc].ingredients[0].name;
@@ -199,7 +199,7 @@ case DIVIDE_WITH_REMAINDER: {
 
 :(scenario "divide_with_remainder_literal")
 recipe main [
-  1:integer, 2:integer <- divide_with_remainder 9:literal, 2:literal
+  1:integer, 2:integer <- divide-with-remainder 9:literal, 2:literal
 ]
 +run: instruction main/0
 +run: ingredient 0 is 9
@@ -213,7 +213,7 @@ recipe main [
 recipe main [
   1:integer <- copy 27:literal
   2:integer <- copy 11:literal
-  3:integer, 4:integer <- divide_with_remainder 1:integer, 2:integer
+  3:integer, 4:integer <- divide-with-remainder 1:integer, 2:integer
 ]
 +run: instruction main/2
 +run: ingredient 0 is 1