diff --git a/base/arraymath.jl b/base/arraymath.jl index 7657df2f72c6f..3e62ca7bc7716 100644 --- a/base/arraymath.jl +++ b/base/arraymath.jl @@ -20,7 +20,7 @@ for f in (:-, :~, :conj, :sign) end else for (iF, iA) in zip(RF, RA) - F[iF] = ($f)(A[iA]) + F[iF] = ($f)(A[iA]) end end return F diff --git a/base/docs/helpdb/Base.jl b/base/docs/helpdb/Base.jl index 2b52520f8d30e..04b443be9e0a0 100644 --- a/base/docs/helpdb/Base.jl +++ b/base/docs/helpdb/Base.jl @@ -6338,7 +6338,7 @@ julia> convert(Int, 3.0) julia> convert(Int, 3.5) ERROR: InexactError() - in convert(::Type{Int64}, ::Float64) at ./int.jl:239 + in convert(::Type{Int64}, ::Float64) at ./float.jl:493 ... ``` diff --git a/doc/manual/constructors.rst b/doc/manual/constructors.rst index f290be78b64c8..4acf03ea9263e 100644 --- a/doc/manual/constructors.rst +++ b/doc/manual/constructors.rst @@ -338,6 +338,7 @@ types of the arguments given to the constructor. Here are some examples: julia> Point{Int64}(1.0,2.5) ERROR: InexactError() + in convert(::Type{Int64}, ::Float64) at ./float.jl:493 in Point{Int64}(::Float64, ::Float64) at ./none:2 ... diff --git a/doc/manual/mathematical-operations.rst b/doc/manual/mathematical-operations.rst index 36fba25e8c46f..2305de1c1031f 100644 --- a/doc/manual/mathematical-operations.rst +++ b/doc/manual/mathematical-operations.rst @@ -408,11 +408,13 @@ The following examples show the different forms. julia> Int8(3.14) ERROR: InexactError() + in convert(::Type{Int8}, ::Float64) at ./float.jl:472 in Int8(::Float64) at ./sysimg.jl:53 ... julia> Int8(128.0) ERROR: InexactError() + in convert(::Type{Int8}, ::Float64) at ./float.jl:472 in Int8(::Float64) at ./sysimg.jl:53 ... @@ -427,7 +429,7 @@ The following examples show the different forms. julia> round(Int8,127.6) ERROR: InexactError() - in trunc(::Type{Int8}, ::Float64) at ./float.jl:458 + in trunc(::Type{Int8}, ::Float64) at ./float.jl:465 in round(::Type{Int8}, ::Float64) at ./float.jl:211 ... diff --git a/doc/manual/stacktraces.rst b/doc/manual/stacktraces.rst index a581d4155906a..da9a1ae94dac2 100644 --- a/doc/manual/stacktraces.rst +++ b/doc/manual/stacktraces.rst @@ -36,7 +36,7 @@ alias :obj:`StackTrace` can be used in place of ``Vector{StackFrame}``. (Example in eval_user_input(::Any, ::Bool) at client.jl:117 in eval(::Module, ::Any) at boot.jl:234 in eval_user_input(::Any, ::Bool) at client.jl:117 - in _start() at client.jl:355 + in _start() at client.jl:358 julia> @noinline child() = stacktrace() child (generic function with 1 method) diff --git a/doc/manual/strings.rst b/doc/manual/strings.rst index de17e181bdc21..3f0855a952297 100644 --- a/doc/manual/strings.rst +++ b/doc/manual/strings.rst @@ -290,14 +290,14 @@ such an invalid byte index, an error is thrown: julia> s[2] ERROR: UnicodeError: invalid character index in slow_utf8_next(::Array{UInt8,1}, ::UInt8, ::Int64) at ./strings/string.jl:67 - in next at ./strings/string.jl:92 [inlined] + in next at ./strings/string.jl:96 [inlined] in getindex(::String, ::Int64) at ./strings/basic.jl:70 ... julia> s[3] ERROR: UnicodeError: invalid character index in slow_utf8_next(::Array{UInt8,1}, ::UInt8, ::Int64) at ./strings/string.jl:67 - in next at ./strings/string.jl:92 [inlined] + in next at ./strings/string.jl:96 [inlined] in getindex(::String, ::Int64) at ./strings/basic.jl:70 ... @@ -554,7 +554,7 @@ contained in a string: julia> contains("Xylophon", 'o') ERROR: MethodError: no method matching contains(::String, ::Char) Closest candidates are: - contains(!Matched::Function, ::Any, !Matched::Any) at reduce.jl:489 + contains(!Matched::Function, ::Any, !Matched::Any) at reduce.jl:495 contains(::AbstractString, !Matched::AbstractString) at strings/search.jl:310 ... diff --git a/doc/manual/types.rst b/doc/manual/types.rst index cf1406e6efb74..f76c0dc66be1f 100644 --- a/doc/manual/types.rst +++ b/doc/manual/types.rst @@ -408,6 +408,7 @@ However, the value for ``baz`` must be convertible to :class:`Int`: julia> Foo((), 23.5, 1) ERROR: InexactError() + in convert(::Type{Int64}, ::Float64) at ./float.jl:493 in Foo(::Tuple{}, ::Float64, ::Int64) at ./none:2 ... diff --git a/doc/stdlib/base.rst b/doc/stdlib/base.rst index 95d7f99bc2189..de5bc38b634fa 100644 --- a/doc/stdlib/base.rst +++ b/doc/stdlib/base.rst @@ -373,7 +373,7 @@ All Objects julia> convert(Int, 3.5) ERROR: InexactError() - in convert(::Type{Int64}, ::Float64) at ./int.jl:239 + in convert(::Type{Int64}, ::Float64) at ./float.jl:493 ... If ``T`` is a :obj:`AbstractFloat` or :obj:`Rational` type, then it will return the closest value to ``x`` representable by ``T``\ . diff --git a/doc/stdlib/io-network.rst b/doc/stdlib/io-network.rst index 6b1a83adfe4cb..d85d6fc22cd33 100644 --- a/doc/stdlib/io-network.rst +++ b/doc/stdlib/io-network.rst @@ -1039,3 +1039,4 @@ Network I/O .. Docstring generated from Julia source The 32-bit byte-order-mark indicates the native byte order of the host machine. Little-endian machines will contain the value ``0x04030201``\ . Big-endian machines will contain the value ``0x01020304``\ . +