Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

clarify documentation for @view #39542

Merged
merged 3 commits into from
Feb 10, 2021
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
fix typo
  • Loading branch information
simeonschaub committed Feb 5, 2021
commit 64ab84925918193eca4fc760becf8cc755b291b1
2 changes: 1 addition & 1 deletion base/views.jl
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ end
Creates a `SubArray` from an indexing expression. This can only be applied directly to a
simeonschaub marked this conversation as resolved.
Show resolved Hide resolved
reference expression (e.g. `@view A[1, 2:end]`). It should *not* be used as the target of
a regular assignment (e.g. `@view(A[1, 2:end]) = ...`), although it can still be useful for
broadcasted assignment (e.g. `@view(A[1, 2:end] .*= 2`). See also [`@views`](@ref)
broadcasted assignment (e.g. `@view(A[1, 2:end]) .*= 2`). See also [`@views`](@ref)
to switch an entire block of code to use views for slicing.

!!! compat "Julia 1.5"
Expand Down