1
0
mirror of https://github.com/adambard/learnxinyminutes-docs.git synced 2025-08-13 10:14:58 +02:00
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:
Michael Rashkovsky
2019-11-15 22:53:36 -05:00
committed by GitHub
parent 50f77dd0d0
commit 74387bab7d

View File

@@ -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,