Skip to content

Commit 640a7c5

Browse files
committed
Changed some wording
1 parent 44d56aa commit 640a7c5

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

_episodes/extending_types.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,9 +23,9 @@ end type
2323
{: .fortran}
2424
Here `<parent type name>` is the name of a derived type to be extended, and `<child type name>` is the name of the new derived type created by extending the parent derived type.
2525

26-
Our new 3 component vector however, doesn't need any new member variables so we don't need to add any new ones. However, by having a distinct derived data type for our 3 component vector will allow us to use specific procedures that work with it as apposed to the those for the more general vector, as we shall see shortly.
26+
Our new 3 component vector however, doesn't need any new member variables. However, by having a distinct derived data type for our 3 component vector it will allow us to use specific procedures that work with it as apposed to the those for the more general vector and at the same time reuse common functionality between the two vector types.
2727

28-
Lets create a new `t_vector_3` derived type and a `create_size_3_vector` to create new ones.
28+
Lets create a new `t_vector_3` derived type and a `create_size_3_vector` function to create new objects.
2929

3030
~~~
3131
$ cp derived_types_init.f90 type_extension.f90

0 commit comments

Comments
 (0)