doc: Fix documentation pseudocode to match description.
Merge pull request #56 from wcn3/master

doc: Fix documentation pseudocode to match description.