Skip to content

Commit f8917c3

Browse files
author
Philip Guo
committed
added nonlocal example
1 parent 4d775d7 commit f8917c3

2 files changed

Lines changed: 8 additions & 2 deletions

File tree

v3/js/opt-frontend.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -480,6 +480,11 @@ $(document).ready(function() {
480480
return false;
481481
});
482482

483+
$('#nonlocalLink').click(function() {
484+
$.get("example-code/nonlocal.txt", setCodeMirrorVal);
485+
return false;
486+
});
487+
483488

484489
if (preseededCode) {
485490
setCodeMirrorVal(preseededCode);

v3/tutor.html

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,7 @@
130130
<p style="margin-top: 15px;">Linked Lists:<br/>
131131
<a id="ll1Link" href="#">LL 1</a> |
132132
<a id="ll2Link" href="#">LL 2</a> |
133-
<a id="sumListLink" href="#">sum list</a>
133+
<a id="sumListLink" href="#">LL sum</a>
134134
</p>
135135

136136
<p style="margin-top: 15px;">Pointer Aliasing:<br/>
@@ -152,7 +152,8 @@
152152
<a id="genExprLink" href="#">gen expr</a> |
153153
<a id="varargsLink" href="#">varargs</a> |
154154
<a id="pwTryFinallyLink" href="#">exceptions</a> |
155-
<a id="forElseLink" href="#">for-else</a>
155+
<a id="forElseLink" href="#">for-else</a> |
156+
<a id="nonlocalLink" href="#">nonlocal</a>
156157
</p>
157158

158159
</div>

0 commit comments

Comments
 (0)