diff options
author | Stanley <46876382+slateny@users.noreply.github.com> | 2022-12-09 03:31:19 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-12-09 03:31:19 (GMT) |
commit | 286e3c76a9cb8f1adc2a915f0d246a1e2e408733 (patch) | |
tree | 2cf574ca38a0f8222784cb691666548e8d0b686a /Doc/library/collections.rst | |
parent | 3e06b5030b18ca9d9d507423b582d13f38d393f2 (diff) | |
download | cpython-286e3c76a9cb8f1adc2a915f0d246a1e2e408733.zip cpython-286e3c76a9cb8f1adc2a915f0d246a1e2e408733.tar.gz cpython-286e3c76a9cb8f1adc2a915f0d246a1e2e408733.tar.bz2 |
gh-99087: Add missing newline for prompts in docs (GH-98993)
Add newline for prompts so copying to REPL does not cause errors.
Diffstat (limited to 'Doc/library/collections.rst')
-rw-r--r-- | Doc/library/collections.rst | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/Doc/library/collections.rst b/Doc/library/collections.rst index 53b4b69..2cffc23 100644 --- a/Doc/library/collections.rst +++ b/Doc/library/collections.rst @@ -229,6 +229,7 @@ For example:: >>> cnt = Counter() >>> for word in ['red', 'blue', 'red', 'green', 'blue', 'blue']: ... cnt[word] += 1 + ... >>> cnt Counter({'blue': 3, 'red': 2, 'green': 1}) @@ -818,6 +819,7 @@ zero): >>> def constant_factory(value): ... return lambda: value + ... >>> d = defaultdict(constant_factory('<missing>')) >>> d.update(name='John', action='ran') >>> '%(name)s %(action)s to %(object)s' % d |