Skip to content

Commit

Permalink
Make car fast (fix outdated type Car -> FastCar) (tensorflow#354)
Browse files Browse the repository at this point in the history
  • Loading branch information
AseiSugiyama authored and dan-zheng committed Jan 4, 2020
1 parent b011490 commit 9a54075
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docs/site/tutorials/protocol_oriented_generics.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -269,11 +269,11 @@
"> \"error: cannot assign to property: 'car' is a 'let' constant\"\n",
"*/\n",
"\n",
"// func modify(car: Car, toColor color: Color) -> Void {\n",
"// func modify(car: FastCar, toColor color: Color) -> Void {\n",
"// car.color = color\n",
"// }\n",
"\n",
"// car = Car(color: .red, horsePower: 250)\n",
"// car = FastCar(color: .red, horsePower: 250)\n",
"// print(car.description())\n",
"// modify(car: &car, toColor: .blue)\n",
"// print(car.description())\n"
Expand Down

0 comments on commit 9a54075

Please sign in to comment.