From ee3dea6c179b0328392d99371f37b7f9537492b0 Mon Sep 17 00:00:00 2001
From: Christoph Groth <christoph.groth@cea.fr>
Date: Fri, 13 Jul 2012 14:50:58 +0200
Subject: [PATCH] Fix typos reported by Tobias Bautze

---
 doc/source/images/tutorial3a.py   | 2 +-
 doc/source/tutorial/tutorial1.rst | 3 ++-
 doc/source/tutorial/tutorial2.rst | 2 +-
 examples/tutorial3a.py            | 2 +-
 4 files changed, 5 insertions(+), 4 deletions(-)

diff --git a/doc/source/images/tutorial3a.py b/doc/source/images/tutorial3a.py
index 843886e4..a4068960 100644
--- a/doc/source/images/tutorial3a.py
+++ b/doc/source/images/tutorial3a.py
@@ -45,7 +45,7 @@ def plot_bandstructure(flead, momenta):
     energy_list = [flead.energies(k) for k in momenta]
 
     pylab.plot(momenta, energy_list)
-    pylab.xlabel("momentum [in untis of (lattice constant)^-1]",
+    pylab.xlabel("momentum [in units of (lattice constant)^-1]",
                  fontsize=latex.mpl_label_size)
     pylab.ylabel("energy [in units of t]",
                  fontsize=latex.mpl_label_size)
diff --git a/doc/source/tutorial/tutorial1.rst b/doc/source/tutorial/tutorial1.rst
index 59ff4096..697b5878 100644
--- a/doc/source/tutorial/tutorial1.rst
+++ b/doc/source/tutorial/tutorial1.rst
@@ -165,7 +165,8 @@ subbands that increases with energy.
      `~kwant.builder.Builder` automatically adds the other
      direction of the hopping such that the resulting system is Hermitian.
 
-     It however does not hurt the other direction of the hopping, too::
+     However, it does not hurt to define the opposite direction of hopping as
+     well.
 
          sys[(1, 0), (0, 0)] = - t
          sys[(0, 0), (1, 0)] = - t.conj()
diff --git a/doc/source/tutorial/tutorial2.rst b/doc/source/tutorial/tutorial2.rst
index 74fdbfeb..236e980a 100644
--- a/doc/source/tutorial/tutorial2.rst
+++ b/doc/source/tutorial/tutorial2.rst
@@ -398,7 +398,7 @@ period of one flux quantum.
     by providing an alternative starting point from where
     the lead is traced back::
 
-        sys.attach_lead(lead1, (0, 0))
+        sys.attach_lead(lead1, lat(0, 0))
 
     starts the trace-back in the middle of the ring, resulting
     in the lead being attached to the inner circle:
diff --git a/examples/tutorial3a.py b/examples/tutorial3a.py
index 058b4e20..3b9e4dcb 100644
--- a/examples/tutorial3a.py
+++ b/examples/tutorial3a.py
@@ -42,7 +42,7 @@ def plot_bandstructure(flead, momenta):
     energy_list = [flead.energies(k) for k in momenta]
 
     pylab.plot(momenta, energy_list)
-    pylab.xlabel("momentum [in untis of (lattice constant)^-1]")
+    pylab.xlabel("momentum [in units of (lattice constant)^-1]")
     pylab.ylabel("energy [in units of t]")
     pylab.show()
 
-- 
GitLab