Skip to content

Commit

Permalink
docs: shopping list clarification
Browse files Browse the repository at this point in the history
  • Loading branch information
dubadub committed Dec 11, 2024
1 parent 9f60b08 commit d4acfb1
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions bindings/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ This library exports methods:
// combines ingredient lists into one
// usage example:
// let all_recipe_ingredients_combined = combine_ingredients(recipe.ingredients);
// if multiple recipes need to be combined, combine their ingredients lists and pass them to this method
combine_ingredients(ingredients: Vec<Ingredient>) -> IngredientList;
// combines ingredient lists into one
// usage example:
Expand Down
1 change: 1 addition & 0 deletions bindings/src/model.rs
Original file line number Diff line number Diff line change
Expand Up @@ -411,6 +411,7 @@ pub(crate) fn into_simple_recipe(recipe: &OriginalRecipe) -> CooklangRecipe {
}

// Process metadata
// TODO: add support for nested metadata
for (key, value) in &recipe.metadata.map {
if let (Some(key), Some(value)) = (key.as_str(), value.as_str()) {
metadata.insert(key.to_string(), value.to_string());
Expand Down

0 comments on commit d4acfb1

Please sign in to comment.