Skip to content

Commit c75e909

Browse files
Remove misleading zero(::DateTime) example
- following JuliaLang/julia#35554 which agrees with the point made here, but shows the given code to be misleading.
1 parent c3dfd3c commit c75e909

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/src/design/many_differentials.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ Beyond being a vector space, differentials need to be able to be added to a prim
1414
Or roughly equivalently a differential is a difference between two primal values.
1515

1616
One thing to note in this example is that the primal does not have to be a vector.
17-
As an example, consider `DateTime`. A `DateTime` is not a vector space: there is no `zero(::DateTime)`, and `DateTime`s cannot be added to each other. The corresponding differential type is any subtype of `Period`, such as `Millisecond`, `Hour`, `Day` etc.
17+
As an example, consider `DateTime`. A `DateTime` is not a vector space: there is no origin point, and `DateTime`s cannot be added to each other. The corresponding differential type is any subtype of `Period`, such as `Millisecond`, `Hour`, `Day` etc.
1818

1919
## Natural differential
2020

0 commit comments

Comments
 (0)