Skip to content

Commit e4fbda7

Browse files
committed
docs: Tame formatting changes
1 parent 8f19580 commit e4fbda7

File tree

1 file changed

+8
-13
lines changed

1 file changed

+8
-13
lines changed

doc/src/manual/types.md

+8-13
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,8 @@
33
Types in Julia establish distinctions between different kinds of data,
44
and are used by the compiler to infer the intended use of those data.
55
Programming languages have traditionally employed one of two quite different type systems:
6-
static type systems,
7-
where expressions must have a computable type before the execution of the program,
8-
and dynamic type systems,
9-
where types are only computed at run time,
6+
static type systems, where expressions must have a computable type before the execution of the program,
7+
and dynamic type systems, where types are only computed at run time,
108
when the actual values manipulated by the program are available.
119
Statically typed languages typically offer faster execution,
1210
at the cost of type annotations which must be explicitly added by the programmer.
@@ -26,14 +24,11 @@ All types belong to a single type tree, i.e. they are all at least related to th
2624
User-defined types are treated the same as built-in types.
2725
For additional flexibility, types can be defined as concrete, abstract or parametric.
2826
Their relation to other types must be explicitly declared.
29-
One particularly distinctive feature of Julia's type system is that
30-
only abstract types can be used as supertypes for a family of related types.
27+
One particularly distinctive feature of Julia's type system is that only abstract types can be used as supertypes for a family of related types.
3128
Concrete types are final, and may not subtype each other.
32-
While this might at first seem unduly restrictive,
33-
it has many beneficial consequences with surprisingly few drawbacks.
34-
Both [abstract types](#man-abstract-types) and [parametric types](#Parametric-Types)
35-
can be used to create flexible interfaces while leveraging method dispatch
36-
and mitigating type errors.
29+
While this might at first seem unduly restrictive, it has many beneficial consequences with surprisingly
30+
few drawbacks. Both [abstract types](#man-abstract-types) and [parametric types](#Parametric-Types)
31+
can be used to create flexible interfaces while leveraging method dispatch and mitigating type errors.
3732

3833
The methods [`isabstracttype`](@ref) and [`isconcretetype`](@ref) can be used
3934
to check if a type is abstract or concrete.
@@ -613,8 +608,8 @@ julia> Point{AbstractString}
613608
Point{AbstractString}
614609
```
615610

616-
`Point` itself is also a valid type object,
617-
containing all instances `Point{Float64}`, `Point{AbstractString}`, etc. as subtypes:
611+
`Point` itself is also a valid type object, containing all instances `Point{Float64}`, `Point{AbstractString}`,
612+
etc. as subtypes:
618613

619614
```jldoctest pointtype
620615
julia> Point{Float64} <: Point

0 commit comments

Comments
 (0)