Skip to content

Commit d9fb7e0

Browse files
committed
don't use the word "copy" in docs for fill; the point is that there is
no copy().
1 parent 9e07edd commit d9fb7e0

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

doc/stdlib/base.rst

+6-6
Original file line numberDiff line numberDiff line change
@@ -4132,17 +4132,17 @@ Constructors
41324132

41334133
.. function:: fill(x, dims)
41344134

4135-
Create an array filled with copies of the value ``x``.
4136-
For e.g., ``fill(1.0, (10,10))`` returns a 10x10 array of floats, with each
4137-
element initialized to 1.0
4135+
Create an array filled with the value ``x``.
4136+
For example, ``fill(1.0, (10,10))`` returns a 10x10 array of floats, with each
4137+
element initialized to 1.0.
41384138

41394139
If ``x`` is an object reference, all elements will refer to the same object.
4140-
For e.g., ``fill(Foo(), dims)``, will return an array filled with the result of evaluating Foo() once.
4140+
``fill(Foo(), dims)`` will return an array filled with the result of evaluating ``Foo()`` once.
41414141

41424142
.. function:: fill!(A, x)
41434143

4144-
Fill the array ``A`` with copies of the value ``x``. If ``x`` is an object reference, all elements will refer to the same object.
4145-
For e.g., ``fill!(A, Foo())``, will return ``A`` filled with the result of evaluating Foo() once.
4144+
Fill array ``A`` with the value ``x``. If ``x`` is an object reference, all elements will refer to the same object.
4145+
``fill!(A, Foo())`` will return ``A`` filled with the result of evaluating ``Foo()`` once.
41464146

41474147
.. function:: reshape(A, dims)
41484148

0 commit comments

Comments
 (0)