Forráskód Böngészése

Change monospace style to overcome AsciiDoctor bug

Looks like AsciiDoctor mistakenly takes `*` as the start of the bold
formatting and messes up completely, so changing `*` to ++*++.

Thank you Krzysztof Kledzik for bringing this to my notice.
Swaroop C H 10 éve
szülő
commit
3e4b311f52
2 módosított fájl, 7 hozzáadás és 7 törlés
  1. 5 5
      more.asciidoc
  2. 2 2
      op_exp.asciidoc

+ 5 - 5
more.asciidoc

@@ -135,8 +135,8 @@ include::programs/more_list_comprehension.txt[]
 
 .How It Works
 
-Here, we derive a new list by specifying the manipulation to be done (`2*i`) when some condition is
-satisfied (`if i > 2`). Note that the original list remains unmodified.
+Here, we derive a new list by specifying the manipulation to be done (++2*i++) when some condition
+is satisfied (`if i > 2`). Note that the original list remains unmodified.
 
 The advantage of using list comprehensions is that it reduces the amount of boilerplate code
 required when we use loops to process each element of a list and store it in a new list.
@@ -144,7 +144,7 @@ required when we use loops to process each element of a list and store it in a n
 === Receiving Tuples and Dictionaries in Functions
 
 There is a special way of receiving parameters to a function as a tuple or a dictionary using the
-`*` or `**` prefix respectively. This is useful when taking variable number of arguments in the
+++*++ or ++**++ prefix respectively. This is useful when taking variable number of arguments in the
 function.
 
 --------------------------------------------------
@@ -161,8 +161,8 @@ function.
 100
 --------------------------------------------------
 
-Because we have a `*` prefix on the `args` variable, all extra arguments passed to the function are
-stored in `args` as a tuple.  If a `**` prefix had been used instead, the extra parameters would be
+Because we have a ++*++ prefix on the `args` variable, all extra arguments passed to the function are
+stored in `args` as a tuple.  If a ++**++ prefix had been used instead, the extra parameters would be
 considered to be key/value pairs of a dictionary.
 
 === The assert statement

+ 2 - 2
op_exp.asciidoc

@@ -38,12 +38,12 @@ be zero.
 +
 `-5.2` gives a negative number and `50 - 24` gives `26`.
 
-`*` (multiply) ::
+++*++ (multiply) ::
 Gives the multiplication of the two numbers or returns the string repeated that many times.
 +
 `2 * 3` gives `6`. `'la' * 3` gives `'lalala'`.
 
-`**` (power) ::
+++**++ (power) ::
 Returns x to the power of y
 +
 `3 ** 4` gives `81` (i.e. `3 * 3 * 3 * 3`)