Skip to content

Commit 1da8d7e

Browse files
bwignallfredrikekre
authored andcommitted
Fix some typos in comments/docs (#34057)
1 parent 83d7466 commit 1da8d7e

File tree

7 files changed

+8
-8
lines changed

7 files changed

+8
-8
lines changed

base/reducedim.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -144,7 +144,7 @@ for (f1, f2, initval) in ((:min, :max, :Inf), (:max, :min, :(-Inf)))
144144
# otherwise use the min/max of the first slice as initial value
145145
v0 = mapreduce(f, $f2, A1)
146146

147-
# but NaNs need to be avoided as intial values
147+
# but NaNs need to be avoided as initial values
148148
v0 = v0 != v0 ? typeof(v0)($initval) : v0
149149

150150
T = _realtype(f, promote_union(eltype(A)))

base/special/cbrt.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ Adding a bias of -0.03306235651 to the `(e%3+m)÷3` term reduces the error to ab
5252
32.
5353
5454
With the IEEE floating point representation, for finite positive normal values, ordinary
55-
integer divison of the value in bits magically gives almost exactly the RHS of the above
55+
integer division of the value in bits magically gives almost exactly the RHS of the above
5656
provided we first subtract the exponent bias and later add it back. We do the
5757
subtraction virtually to keep e >= 0 so that ordinary integer division rounds towards
5858
minus infinity; this is also efficient. All operations can be done in 32-bit.

base/stream.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ function eof(s::LibuvStream)
5151
# and that we won't return true if there's a readerror pending (it'll instead get thrown).
5252
# This requires some careful ordering here (TODO: atomic loads)
5353
bytesavailable(s) > 0 && return false
54-
open = isopen(s) # must preceed readerror check
54+
open = isopen(s) # must precede readerror check
5555
s.readerror === nothing || throw(s.readerror)
5656
return !open
5757
end
@@ -332,7 +332,7 @@ end
332332
function wait_readnb(x::LibuvStream, nb::Int)
333333
# fast path before iolock acquire
334334
bytesavailable(x.buffer) >= nb && return
335-
open = isopen(x) # must preceed readerror check
335+
open = isopen(x) # must precede readerror check
336336
x.readerror === nothing || throw(x.readerror)
337337
open || return
338338
iolock_begin()

contrib/mac/frameworkapp/ExecSandbox/ExecSandboxProtocol.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
@param executableBookmark NSURL file bookmark for the julia executable to run.
1818
@param args Arguments to pass to julia.
1919
@param reply Async result with task and standard in, out, and error. An error
20-
occured if task is nil.
20+
occurred if task is nil.
2121
*/
2222
- (void)eval:(NSString *_Nonnull)juliaProgram
2323
withJulia:(NSData *_Nonnull)executableBookmark

contrib/windows/build-installer.iss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ PreparingDesc=
2828
InstallingLabel=
2929
ClickFinish=
3030
FinishedHeadingLabel=Installation complete
31-
FinishedLabelNoIcons=[name] has been succesfully installed.
31+
FinishedLabelNoIcons=[name] has been successfully installed.
3232
FinishedLabel=
3333
StatusExtractFiles=Extracting...
3434
StatusUninstalling=Removing...

doc/src/devdocs/types.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ f3(A::Array{T}) where {T<:Any} = 3
8282
f4(A::Array{Any}) = 4
8383
```
8484

85-
The signature - as decribed in [Function calls](@ref) - of `f3` is a `UnionAll` type wrapping a tuple type: `Tuple{typeof(f3), Array{T}} where T`.
85+
The signature - as described in [Function calls](@ref) - of `f3` is a `UnionAll` type wrapping a tuple type: `Tuple{typeof(f3), Array{T}} where T`.
8686
All but `f4` can be called with `a = [1,2]`; all but `f2` can be called with `b = Any[1,2]`.
8787

8888
Let's look at these types a little more closely:

stdlib/REPL/test/repl.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1086,7 +1086,7 @@ fake_repl() do stdin_write, stdout_read, repl
10861086
# for the "region_active" to have time to be updated
10871087

10881088
@test LineEdit.state(repl.mistate).region_active == :off
1089-
@test s4 == "anything" # no control characters between the last two occurences of "anything"
1089+
@test s4 == "anything" # no control characters between the last two occurrences of "anything"
10901090
write(stdin_write, "\x15\x04")
10911091
Base.wait(repltask)
10921092
end

0 commit comments

Comments
 (0)