Skip to content

Commit d0c1f06

Browse files
authored
Correct function names in README (#31)
1 parent 117f59d commit d0c1f06

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,7 @@ patch.estimates.createFlightEstimate({ distance_m: distance_m });
112112
// Create a shipping estimate
113113
const distance_m = 9000000;
114114
// Pass in the shipping distance in meters, the transportation method, and the package mass
115-
patch.estimates.createFlightEstimate({
115+
patch.estimates.createShippingEstimate({
116116
distance_m: distance_m,
117117
transportation_method: 'air',
118118
package_mass_g: 1000
@@ -121,7 +121,7 @@ patch.estimates.createFlightEstimate({
121121
// Create a vehicle estimate
122122
const distance_m = 9000000;
123123
// Pass in the shipping distance in meters and the model/make/year of the vehicle
124-
patch.estimates.createFlightEstimate({
124+
patch.estimates.createVehicleEstimate({
125125
distance_m: distance_m,
126126
make: 'Toyota',
127127
model: 'Corolla',

0 commit comments

Comments
 (0)