Skip to content

Commit

Permalink
Fix typos in docs and docstrings (#197)
Browse files Browse the repository at this point in the history
  • Loading branch information
pitmonticone authored Aug 4, 2023
1 parent 5ebad6c commit 0d7ea6c
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
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

0 comments on commit 0d7ea6c

Please sign in to comment.