2017-08-14 49 views
1

the arrays section of the manual有一個示例使用隱式廣播字符串,這是我的失敗。我可以解決它,但我只是想舉報它 -穩定的文檔廣播示例失敗

julia> string.(1:3, ". ", ["First", "Second", "Third"]) 

我得到下面的輸出 -

ERROR: MethodError: no method matching size(::String) 
Closest candidates are: 
    size{N}(::Any, ::Integer, ::Integer, ::Integer...) at abstractarray.jl:48 
    size(::BitArray{1}) at bitarray.jl:39 
    size(::BitArray{1}, ::Any) at bitarray.jl:43 
    ... 
in map(::Base.#indices, ::Tuple{String,Array{String,1}}) at 
./tuple.jl:93 
in broadcast_shape(::UnitRange{Int64}, ::String, ::Array{String,1}, 
::Vararg{Array{String,1},N}) at ./broadcast.jl:31 
in broadcast_t(::Function, ::Type{T}, ::UnitRange{Int64}, 
::Vararg{Any,N}) at ./broadcast.jl:228 
in broadcast(::Function, ::UnitRange{Int64}, ::String, 
::Array{String,1}) at ./broadcast.jl:230 
+0

在0.7上工作。版? –

+0

在這裏工作在v0.6。你的'versioninfo()'說什麼? –

+2

我還在0.5.1上。也許是時候升級!感謝您的快速反饋。 –

回答