From 8820e8c5d4c185776a6ce0f7d69b3e1aa0dc6a77 Mon Sep 17 00:00:00 2001 From: David Schmenk Date: Wed, 6 Jan 2016 12:58:02 -0800 Subject: [PATCH] Better inc/dec example --- doc/User Manual.md | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/doc/User Manual.md b/doc/User Manual.md index 05af865..326a96e 100644 --- a/doc/User Manual.md +++ b/doc/User Manual.md @@ -521,10 +521,11 @@ PLASMA has an increment and decrement statement. This is different than the incr ``` byte i -i = 0 -while i < 100 - i++ -loop +i = 4 +i++ // increment i by 1 +puti(i) // print 5 +i-- // decrement i by 1 +puti(i) // print 4 ``` #### Control Flow