Skip to content

Commit

Permalink
add missing "Threads." in example (#18219)
Browse files Browse the repository at this point in the history
  • Loading branch information
rened authored and tkelman committed Aug 25, 2016
1 parent f95b8b1 commit f58aaef
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion doc/manual/parallel-computing.rst
Original file line number Diff line number Diff line change
Expand Up @@ -1056,7 +1056,7 @@ Julia supports parallel loops using the :obj:`Threads.@threads` macro. This macr
of a ``for`` loop to indicate to Julia that the loop is a multi-threaded region. ::

Threads.@threads for i = 1:10
a[i] = threadid()
a[i] = Threads.threadid()
end

The iteration space is split amongst the threads, after which each thread writes its thread ID to its assigned locations.::
Expand Down

0 comments on commit f58aaef

Please sign in to comment.