From 686b55be2b4e72d40e13b3540e917543997b96cf Mon Sep 17 00:00:00 2001 From: Alexandre Terrasa Date: Thu, 4 Dec 2014 15:20:21 -0500 Subject: [PATCH] lib/standard: fixes some comment presentation according to new `doc_down` behavior. Signed-off-by: Alexandre Terrasa --- lib/standard/kernel.nit | 3 ++- lib/standard/math.nit | 2 +- lib/standard/ropes.nit | 18 +++++++++++------- 3 files changed, 14 insertions(+), 9 deletions(-) diff --git a/lib/standard/kernel.nit b/lib/standard/kernel.nit index 26498fe..09ce238 100644 --- a/lib/standard/kernel.nit +++ b/lib/standard/kernel.nit @@ -285,7 +285,8 @@ end # `true` and `false` are the only instances. # # Boolean are manipulated trough three special operators: -# `and`, `or`, `not`. +# `and`, `or`, `not`. +# # Booleans are mainly used by conditional statement and loops. universal Bool redef fun object_id is intern diff --git a/lib/standard/math.nit b/lib/standard/math.nit index 4a25b49..4b6ed35 100644 --- a/lib/standard/math.nit +++ b/lib/standard/math.nit @@ -173,7 +173,7 @@ redef class Float # #assert 1.0.log == 0.0 fun log: Float is extern "kernel_Float_Float_log_0" - # Returns **e** raised to `self`. + # Returns *e* raised to `self`. fun exp: Float is extern "kernel_Float_Float_exp_0" # assert 1.1.ceil == 2.0 diff --git a/lib/standard/ropes.nit b/lib/standard/ropes.nit index d7bc8e8..8186ec9 100644 --- a/lib/standard/ropes.nit +++ b/lib/standard/ropes.nit @@ -16,8 +16,12 @@ # # Ropes are a data structure introduced in a 1995 paper from # Hans J. Boehm, Russ Atkinson and Michael Plass. -# See : `Ropes : an Alternative to Strings`, `Software - Practice and Experience, -# Vol. 25(12), 1315-1330 (December 1995)`. +# +# See: +# +# > Ropes: an Alternative to Strings, +# > *Software - Practice and Experience*, +# > Vol. 25(12), 1315-1330 (December 1995). # # The implementation developed here provides an automatic change # of data structure depending on the length of the leaves. @@ -32,11 +36,11 @@ # # Example : # -# ` Concat ` -# ` / \ ` -# ` Concat Concat ` -# ` / \ / \ ` -# `"My" " Name" " is" " Simon." ` +# Concat +# / \ +# Concat Concat +# / \ / \ +# "My" " Name" " is" " Simon." # # Note that the above example is not representative of the actual implementation # of `Ropes`, since short leaves are merged to keep the rope at an acceptable -- 1.7.9.5