mirror of
https://github.com/adambard/learnxinyminutes-docs.git
synced 2024-12-23 09:41:36 +00:00
fix typo
the type of secondTrip should be Trips.trainJourney, not Trips.firstTrip. trainJourney is a proper type, whereas firstTrip is a variable
This commit is contained in:
parent
50f77dd0d0
commit
74387bab7d
@ -162,7 +162,7 @@ let maxPassengers = firstTrip.capacity;
|
||||
|
||||
/* If you define the record type in a different file, you have to reference the
|
||||
filename, if trainJourney was in a file called Trips.re */
|
||||
let secondTrip: Trips.firstTrip = {
|
||||
let secondTrip: Trips.trainJourney = {
|
||||
destination: "Paris",
|
||||
capacity: 50,
|
||||
averageSpeed: 150.0,
|
||||
|
Loading…
Reference in New Issue
Block a user