aboutsummaryrefslogtreecommitdiffstats
path: root/src/datastructures/linkedlists/sentinel-template
diff options
context:
space:
mode:
authorMattias Andrée <maandree@operamail.com>2014-01-23 10:44:19 +0100
committerMattias Andrée <maandree@operamail.com>2014-01-23 10:44:19 +0100
commitea0811b043d1708b77286574a72825fe36156245 (patch)
treed0e7896ae25fb7838335a0a555e1db378b3b7979 /src/datastructures/linkedlists/sentinel-template
parentmissed to initialise the sentinel node (diff)
downloadalgorithms-and-data-structures-ea0811b043d1708b77286574a72825fe36156245.tar.gz
algorithms-and-data-structures-ea0811b043d1708b77286574a72825fe36156245.tar.bz2
algorithms-and-data-structures-ea0811b043d1708b77286574a72825fe36156245.tar.xz
m
Signed-off-by: Mattias Andrée <maandree@operamail.com>
Diffstat (limited to 'src/datastructures/linkedlists/sentinel-template')
-rw-r--r--src/datastructures/linkedlists/sentinel-template3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/datastructures/linkedlists/sentinel-template b/src/datastructures/linkedlists/sentinel-template
index 9485226..3decdbc 100644
--- a/src/datastructures/linkedlists/sentinel-template
+++ b/src/datastructures/linkedlists/sentinel-template
@@ -67,9 +67,8 @@
{
this.edge = new Node(null);
this.edge.next = this.edge;
-£>if (( with_prev )); then
+(( with_prev )) &&
this.edge.previous = this.edge;
-£>fi
}