From db92eebb40441f8286d85ff0bdbbb1931e78fb07 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Alexis=20Laferri=C3=A8re?= Date: Fri, 28 Aug 2015 13:19:04 -0400 Subject: [PATCH] examples/draw_operation: revamp the doc with a sample input/output MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Signed-off-by: Alexis Laferrière --- examples/draw_operation.nit | 31 ++++++++++++++++++++++++++++++- 1 file changed, 30 insertions(+), 1 deletion(-) diff --git a/examples/draw_operation.nit b/examples/draw_operation.nit index a5ad1d5..61f14eb 100644 --- a/examples/draw_operation.nit +++ b/examples/draw_operation.nit @@ -14,7 +14,36 @@ # See the License for the specific language governing permissions and # limitations under the License. -# Draws an arithmetic operation to the terminal +# Sample program which draws an arithmetic operation to the terminal +# +# Output (and input) example: +# ~~~nitish +# Left operand: 23 +# Right operand: 15 +# Operator (+, -, *, /, %): + +# Char to display: # +# Size of text: 5 +# Space between digits: 1 +# ##### ##### +# # # +# ##### ##### +# # # +# ##### ##### +# +# # ##### +# + ## # +# +++++ # ##### +# + # # +# ##### ##### +# +# __________________ +# +# ##### ##### +# # # # +# ##### ##### +# # # # +# ##### ##### +# ~~~ module draw_operation `{ -- 1.7.9.5