Skip to content

Commit d99a5b4

Browse files
KenoKristofferC
authored andcommitted
Address problematic sentences identified in #29372
1 parent 30feb20 commit d99a5b4

File tree

1 file changed

+7
-6
lines changed

1 file changed

+7
-6
lines changed

doc/src/manual/faq.md

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -141,9 +141,9 @@ When calling `change_value!(x)` in the above example, `y` is a newly created var
141141
to the value of `x`, i.e. `10`; then `y` is rebound to the constant `17`, while the variable
142142
`x` of the outer scope is left untouched.
143143

144-
But here is a thing you should pay attention to: suppose `x` is bound to an object of type `Array`
144+
However, if `x` is bound to an object of type `Array`
145145
(or any other *mutable* type). From within the function, you cannot "unbind" `x` from this Array,
146-
but you can change its content. For example:
146+
but you *can* change its content. For example:
147147

148148
```jldoctest
149149
julia> x = [1,2,3]
@@ -334,8 +334,8 @@ unstable (generic function with 1 method)
334334

335335
It returns either an `Int` or a [`Float64`](@ref) depending on the value of its argument.
336336
Since Julia can't predict the return type of this function at compile-time, any computation
337-
that uses it will have to guard against both types possibly occurring, making generation of
338-
fast machine code difficult.
337+
that uses it must be able to cope with values of both types, which makes it hard to produce
338+
fast machine code.
339339

340340
### [Why does Julia give a `DomainError` for certain seemingly-sensible operations?](@id faq-domain-errors)
341341

@@ -770,8 +770,9 @@ generate efficient code when working with `Union{T, Nothing}` arguments or field
770770
To represent missing data in the statistical sense (`NA` in R or `NULL` in SQL), use the
771771
[`missing`](@ref) object. See the [`Missing Values`](@ref missing) section for more details.
772772

773-
The empty tuple (`()`) is another form of nothingness. But, it should not really be thought of
774-
as nothing but rather a tuple of zero values.
773+
In some languages, the empty tuple (`()`) is considered the canonical
774+
form of nothingness. However, in julia it is best thought of as just
775+
a regular tuple that happens to contain zero values.
775776

776777
The empty (or "bottom") type, written as `Union{}` (an empty union type), is a type with
777778
no values and no subtypes (except itself). You will generally not need to use this type.

0 commit comments

Comments
 (0)