git ssb

2+

Dominic / pull-stream



Commit 48f11ee4bbabe3ee3bf0c9e02f75c39456e53582

tiny fix for the random number readable example

Matthew Mueller authored on 6/29/2016, 7:28:31 AM
GitHub committed on 6/29/2016, 7:28:31 AM
Parent: 928c0c8cbbeb8ead2e2f46ed566c6d0ea37b0be7

Files changed

README.mdchanged
README.mdView
@@ -72,9 +72,9 @@
7272 function random (n) {
7373 return function (end, cb) {
7474 if(end) return cb(end)
7575 //only read n times, then stop.
76- if(0<--n) return cb(true)
76+ if(0>--n) return cb(true)
7777 cb(null, Math.random())
7878 }
7979 }
8080

Built with git-ssb-web