Skip to content

Commit

Permalink
Docs: fix wrong variable in code sample (from Disqus comment by webiyo)
Browse files Browse the repository at this point in the history
  • Loading branch information
Peter Hilton committed May 28, 2011
1 parent 5eaafc2 commit c07034c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion documentation/manual/cache.textile
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ bc. public static void showProduct(String id) {
public static void addProduct(String name, int price) {
Product product = new Product(name, price);
product.save();
showProduct(id);
showProduct(product.id);
}

public static void editProduct(String id, String name, int price) {
Expand Down

0 comments on commit c07034c

Please sign in to comment.