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

Fix typos in docs and docstrings #197

Merged
merged 3 commits into from
Aug 4, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
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
2 changes: 1 addition & 1 deletion docs/src/views.md
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,7 @@ julia> img
RGB{N0f8}(0.0,0.0,1.0) RGB{N0f8}(0.0,0.0,0.0)
```

The hexidecimal representation of 128 is 0x80; this is approximately
The hexadecimal representation of 128 is 0x80; this is approximately
halfway to 255, and as a consequence the `N0f8` representation is
very near 0.5. You can see the same change is reflected in `r`, `v`,
and `img`: there is only one underlying array, `img`, and the two
Expand Down
2 changes: 1 addition & 1 deletion src/ImageCore.jl
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ const Color1Array{C<:Color1,N} = AbstractArray{C,N}
const RRArray{To,From,M,P} = Base.ReinterpretArray{To,M,From,P,true}
const RGArray = Union{Base.ReinterpretArray{<:AbstractGray,M,<:Number,P}, Base.ReinterpretArray{<:Number,M,<:AbstractGray,P}} where {M,P}

# delibrately not export these constants to enable extensibility for downstream packages
# Deliberately not export these constants to enable extensibility for downstream packages
const NumberLike = Union{Number,AbstractGray}
const Pixel = Union{Number,Colorant}
const GenericGrayImage{T<:NumberLike,N} = AbstractArray{T,N}
Expand Down
2 changes: 1 addition & 1 deletion src/map.jl
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ clamp01(c::Union{TransparentGray,AbstractRGB,TransparentRGB}) = mapc(clamp01, c)
Restrict values in array to [0, 1], in-place. See also [`clamp01`](@ref).
"""
function clamp01!(img::AbstractArray)
# slgihtly faster than map!(clamp01, img, img)
# Slightly faster than map!(clamp01, img, img)
@inbounds for i in eachindex(img)
img[i] = clamp01(img[i])
end
Expand Down
Loading