Skip to content

Commit

Permalink
Merge pull request #454 from bowenszhu/patch-1
Browse files Browse the repository at this point in the history
Fix typo
  • Loading branch information
shashi authored Jul 28, 2022
2 parents 2e89dda + 81cb5ce commit 97a8a86
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions page/rewrite.md
Original file line number Diff line number Diff line change
Expand Up @@ -187,13 +187,13 @@ csa = Chain([sqexpand, acpyid])
csa((cos(x) + sin(x))^2)
```

Important feature of `Chain` is that it returns the expressiona instead of `nothing` if it doesn't change the expression
Important feature of `Chain` is that it returns the expression instead of `nothing` if it doesn't change the expression

```julia:composing2
Chain([@acrule sin(~x)^2 + cos(~x)^2 => 1])((cos(x) + sin(x))^2)
```

its important to notice, that chain is ordered, so if rules are in different order it wouldn't work the same as in earlier example
it's important to notice, that chain is ordered, so if rules are in different order it wouldn't work the same as in earlier example

```julia:composing3
cas = Chain([acpyid, sqexpand])
Expand Down

0 comments on commit 97a8a86

Please sign in to comment.