Skip to content

Commit b1660ed

Browse files
committed
fix some docs typos
1 parent db12046 commit b1660ed

File tree

1 file changed

+5
-6
lines changed

1 file changed

+5
-6
lines changed

src/primitive/defs.rs

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -540,7 +540,7 @@ primitive!(
540540
/// [un][shape] creates an array of incrementing elements with the given shape.
541541
/// ex: °△ 2_3_4
542542
///
543-
/// Subscripted [shape] gets the shape from the first few axes
543+
/// Subscripted [shape] gets the shape from the first few axes.
544544
/// ex: △₂ °△2_3_4_5
545545
///
546546
/// It is a triangle`△` because a triangle is a shape.
@@ -2244,7 +2244,7 @@ primitive!(
22442244
/// Repeat a function while a condition holds
22452245
///
22462246
/// The first function is the loop function, and it is run as long as the condition is true.
2247-
/// The second function is the condition. It's top return value must be a boolean.
2247+
/// The second function is the condition. Its top return value must be a boolean.
22482248
/// ex: ⍢(×2|<1000) 1
22492249
/// Return values from the condition function that are under the condition itself will be passed to the loop function.
22502250
/// Here is an example that evaluates a [Collatz sequence](https://en.wikipedia.org/wiki/Collatz_conjecture).
@@ -2256,7 +2256,6 @@ primitive!(
22562256
/// ex: ⍢(×3|<100) 1
22572257
/// : ⍢(×3|<100.) 1
22582258
/// The net stack change of the two functions, minus the condition, is called the *composed signature*.
2259-
/// The composed signatures of the above examples all have a net stack change of `0`.
22602259
/// A composed signature with a positive net stack change is only allowed inside an array.
22612260
/// ex: ⍢(⊸×2|≤1000) 10
22622261
/// ex: ⍢(.×2|≤1000) 10
@@ -3033,12 +3032,12 @@ primitive!(
30333032
/// : # √x → 1/(2√x)
30343033
/// : ∂√ 1/9
30353034
/// ex: # Experimental!
3036-
/// : # x² - 2x - 4 → 2x² - 2x
3035+
/// : # x² - 2x - 4 → 2x - 2
30373036
/// : ∂(++⊃(ⁿ2|ׯ2|¯4)) [0 1 2]
30383037
/// [derivative][sine] is a simple way to make a cosine function.
30393038
/// ex: # Experimental!
30403039
/// : # sin(x) → cos(x)
3041-
/// : ⍜×⁅1e3 ∂∿ ×τ÷⟜⇡8
3040+
/// : ⁅₃ ∂∿ ×τ÷⟜⇡8
30423041
/// Most derivatives that would require the chain or product rule are not supported.
30433042
/// ex! # Experimental!
30443043
/// : # xsin(x) → sin(x) + xcos(x)
@@ -3052,7 +3051,7 @@ primitive!(
30523051
([1], Derivative, Algorithm, ("derivative", '∂'), { experimental: true }),
30533052
/// Calculate an antiderivative of a mathematical expression
30543053
///
3055-
/// Basic polynomials are supported, along with [sine] and [logarithm].
3054+
/// Basic polynomials are supported, along with [sine].
30563055
/// ex: # Experimental!
30573056
/// : # x² → x³/3
30583057
/// : ∫(×.) 3

0 commit comments

Comments
 (0)