From a3811818597b3be1561ccb10f0087989d13b6f2b Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?S=C3=A9bastien=20Gilles?= <sebastien.gilles@inria.fr>
Date: Wed, 28 Sep 2022 17:45:42 +0200
Subject: [PATCH] Minor changes... that includes a bug in our example (wrong
 type used).

---
 3-Operators/2-Comparison.ipynb | 2 ++
 3-Operators/5-Functors.ipynb   | 2 +-
 2 files changed, 3 insertions(+), 1 deletion(-)

diff --git a/3-Operators/2-Comparison.ipynb b/3-Operators/2-Comparison.ipynb
index 2a3687d..5b593ac 100644
--- a/3-Operators/2-Comparison.ipynb
+++ b/3-Operators/2-Comparison.ipynb
@@ -457,6 +457,8 @@
    "metadata": {},
    "outputs": [],
    "source": [
+    "// What the operator< would look like if we wrote it ourselves:\n",
+    "\n",
     "bool operator<(const Rational& lhs, const Rational& rhs)\n",
     "{\n",
     "    if !(toolbox1.Nscrewdriver_ == toolbox2.Nscrewdriver_)\n",
diff --git a/3-Operators/5-Functors.ipynb b/3-Operators/5-Functors.ipynb
index 0cf05ec..b27f32a 100644
--- a/3-Operators/5-Functors.ipynb
+++ b/3-Operators/5-Functors.ipynb
@@ -81,7 +81,7 @@
     "    LinearFunction Double(2);\n",
     "    LinearFunction Triple(3);\n",
     "\n",
-    "    for (double value : values)\n",
+    "    for (int value : values)\n",
     "        std::cout << value << \"\\t\" << Double(value) << \"\\t\" << Triple(value) << std::endl;\n",
     "}"
    ]
-- 
GitLab