Skip to content

Commit 6c31336

Browse files
committed
DOC: change myrecording2 -> myrecording
The variable name is re-used anyway, so there is no point in changing it here.
1 parent 9217a2b commit 6c31336

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

README.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -180,7 +180,7 @@ To play back an array and record at the same time, use `sounddevice.playrec()`:
180180

181181
.. code:: python
182182
183-
myrecording2 = sd.playrec(myarray, fs, channels=2)
183+
myrecording = sd.playrec(myarray, fs, channels=2)
184184
185185
The number of output channels is obtained from ``myarray``, but the number of
186186
input channels still has to be specified.
@@ -191,7 +191,7 @@ Again, default values can be used:
191191
192192
sd.default.samplerate = fs
193193
sd.default.channels = 2
194-
myrecording2 = sd.playrec(myarray)
194+
myrecording = sd.playrec(myarray)
195195
196196
In this case the number of output channels is still taken from ``myarray``
197197
(which may or may not have 2 channels), but the number of input channels is

0 commit comments

Comments
 (0)