← numpy-100

Typo

f531ebdc24f987f82545433c58c1ad17bd9707c7 · Nicolas Rougier · May 27, 2014 07:03

+5 −5 · 1 file changed

  • README.rst +5 −5
diff --git a/README.rst b/README.rst
index a73c5db..39c7c4e 100644
--- a/README.rst
+++ b/README.rst
@@ -175,10 +175,10 @@ Novice
 
 10. Create a random vector of size 1000 and find the mean value
 
-   .. code:: python
+    .. code:: python
 
-      Z = np.random.random(1000)
-      m = Z.mean()
+       Z = np.random.random(1000)
+       m = Z.mean()
 
 
 
@@ -285,9 +285,9 @@ Apprentice
 
 10. Find the nearest value from a given value in an array
 
-   .. code:: python
+    .. code:: python
 
-      Z.flat[np.abs(Z - z).argmin()]
+       Z.flat[np.abs(Z - z).argmin()]