Skip to content

Commit e561af3

Browse files
authored
Fixed a few typos (#502)
1 parent 5404e37 commit e561af3

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

docs/src/chainrules.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
## ChainRulesCore Integration
22

3-
The `WeightedIndex` infrastructure has issues working with autodiff libraries. Autodiff is facilitate by integration with ChainRulesCore. A custom [rrule](https://juliadiff.org/ChainRulesCore.jl/dev/index.html) is definied such that
3+
The `WeightedIndex` infrastructure has issues working with autodiff libraries. Autodiff is facilitate by integration with ChainRulesCore. A custom [rrule](https://juliadiff.org/ChainRulesCore.jl/dev/index.html) is defined such that
44

55
```julia
66
y, itp_pullback = rrule(itp, 1)
77
```
8-
`itp_pullback` takes a purturbation on `y` and returns how it effects each `x` dimension. Since `Interpolations` already has a `gradient` function, `pullback` reuses it by scaling it by `Δy`.
8+
`itp_pullback` takes a perturbation on `y` and returns how it effects each `x` dimension. Since `Interpolations` already has a `gradient` function, `pullback` reuses it by scaling it by `Δy`.
99

1010
This enables integration with autodiff libraries like Zygote, enabling
1111

src/hermite/cubic.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ struct CubicHermite
2525
if (length(xs) != length(ys) || length(ys) != length(dydxs))
2626
throw(
2727
DomainError(
28-
"There must be exactly the same number of abscissasas ordinates and derivatives.",
28+
"There must be exactly the same number of abscissas as ordinates and derivatives.",
2929
),
3030
)
3131
end

src/requires/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
This directory contains files that facilitate the composition of Interpolations.jl with other julia packages.
22

3-
To add extra code that is loaded using Requries.jl create a new file named after the package of interest and then
3+
To add extra code that is loaded using Requires.jl create a new file named after the package of interest and then
44
modify `__init__` in Interpolations.jl with a `@require` statement to include the file.

0 commit comments

Comments
 (0)