From 7dbd3bcf7cae0ff2ff030c84bc3b1ece2b0d2912 Mon Sep 17 00:00:00 2001 From: Johnathon Sage Date: Sat, 14 Nov 2015 16:18:53 -0500 Subject: [PATCH] Update api.rst Extra closing '])' in yield "yields 'LexException' --- docs/language/api.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/language/api.rst b/docs/language/api.rst index 3ee2374..3556222 100644 --- a/docs/language/api.rst +++ b/docs/language/api.rst @@ -1514,7 +1514,7 @@ infinite series without consuming infinite amount of memory. => (import random) => (defn random-numbers [low high] ... (while True (yield (.randint random low high)))) - => (list-comp x [x (take 15 (random-numbers 1 50))])]) + => (list-comp x [x (take 15 (random-numbers 1 50))]) [7, 41, 6, 22, 32, 17, 5, 38, 18, 38, 17, 14, 23, 23, 19]