1
0
Fork 0

fixed some comment typos

main
Oliver Stolle 2026-04-04 13:17:15 +00:00
parent 72c8f435e2
commit b83f1365e4
1 changed files with 3 additions and 3 deletions

View File

@ -18,15 +18,15 @@ type Product struct {
}
var initial_inventory = [1]Product{{ELECTRONICS, "Laptop", 10, 100.0}} //Subtask 2 => Did you mean "product(s)" instead of "product names"
var inventory = initial_inventory[0:] //Subtask 5 //Subtask 3
var inventory = initial_inventory[0:] //Subtask 3
var product_categories = map[prod_category]string{
0: "Electronics",
1: "Groceries",
2: "Clothes",
}
} //Subtask 4
// From here Subtask 6
// From here on Subtask 5:
func AddProduct(category prod_category, name string, quantity float32, price float32) {
inventory = append(inventory, Product{category, name, quantity, price})