Explorar o código

example: Use correct arthimetic display

Ole Krüger %!s(int64=10) %!d(string=hai) anos
pai
achega
313b7a2c2b
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      examples/stack.cpp

+ 1 - 1
examples/stack.cpp

@@ -25,7 +25,7 @@ int main() {
 	std::cout << "c = " << Value<double>::read(state, 3) << std::endl;
 
 	// ... which is a little cumbersome. Instead we might apply a fitting function to our stack.
-	std::cout << "a + b + c = "
+	std::cout << "(a + b) * c = "
 	          << apply(state, sum3)
 	          << std::endl;