From 31c0c08dfc23c42a4a76978c989a05cf040f7f01 Mon Sep 17 00:00:00 2001
From: Matteo Rossi <teo.red90@gmail.com>
Date: Wed, 10 Oct 2018 13:14:12 +0300
Subject: [PATCH] Added docstring for square

---
 unnecessarymath.py | 10 ++++++++--
 1 file changed, 8 insertions(+), 2 deletions(-)

diff --git a/unnecessarymath.py b/unnecessarymath.py
index b1c11fe..0985cd8 100644
--- a/unnecessarymath.py
+++ b/unnecessarymath.py
@@ -8,12 +8,18 @@ def sqrt(x):
 
     >>> sqrt(4)
     2.0
-
     >>> sqrt(1.)
     1.0
     """
     return np.sqrt(x)
 
 def square(x):
-    """Evaluate the square of a number"""
+    """
+    Evaluate the square of a number
+
+    >>> square(2)
+    4
+    >>> square(4.)
+    16.
+    """
     return x * x
-- 
GitLab