diff options
Diffstat (limited to 'doc/codewalk')
-rw-r--r-- | doc/codewalk/codewalk.js | 2 | ||||
-rw-r--r-- | doc/codewalk/markov.xml | 2 | ||||
-rw-r--r-- | doc/codewalk/pig.go | 2 |
3 files changed, 3 insertions, 3 deletions
diff --git a/doc/codewalk/codewalk.js b/doc/codewalk/codewalk.js index f780bc7a5..eb4667ac0 100644 --- a/doc/codewalk/codewalk.js +++ b/doc/codewalk/codewalk.js @@ -297,7 +297,7 @@ CodewalkViewer.prototype.updateHeight = function() { }; jQuery(document).ready(function() { - var viewer = new CodewalkViewer(jQuery()); + var viewer = new CodewalkViewer(jQuery('#codewalk-main')); viewer.selectFirstComment(); viewer.targetCommentLinksAtBlank(); viewer.installEventHandlers(); diff --git a/doc/codewalk/markov.xml b/doc/codewalk/markov.xml index b7b711783..7f1281817 100644 --- a/doc/codewalk/markov.xml +++ b/doc/codewalk/markov.xml @@ -58,7 +58,7 @@ Prefix Map key this data. </step> -<step title="The NewChain constructor function" src="doc/codewalk/markov.go:/func New/,/}/"> +<step title="The NewChain constructor function" src="doc/codewalk/markov.go:/func New/,/\n}/"> The <code>Chain</code> struct has two unexported fields (those that do not begin with an upper case character), and so we write a <code>NewChain</code> constructor function that initializes the diff --git a/doc/codewalk/pig.go b/doc/codewalk/pig.go index 10963b4e4..941daaed1 100644 --- a/doc/codewalk/pig.go +++ b/doc/codewalk/pig.go @@ -23,7 +23,7 @@ type score struct { // An action transitions stochastically to a resulting score. type action func(current score) (result score, turnIsOver bool) -// roll returns the (result, turnIsOver) outcome of simulating a die roll. +// roll returns the (result, turnIsOver) outcome of simulating a die roll. // If the roll value is 1, then thisTurn score is abandoned, and the players' // roles swap. Otherwise, the roll value is added to thisTurn. func roll(s score) (score, bool) { |