diff --git a/snippet_data/snippetList.json b/snippet_data/snippetList.json index a6011bce6..129c20339 100644 --- a/snippet_data/snippetList.json +++ b/snippet_data/snippetList.json @@ -539,7 +539,7 @@ } }, { - "id": "initialiaze_2d_list", + "id": "initialize_2d_list", "type": "snippetListing", "title": "initialize_2d_list", "attributes": { diff --git a/snippet_data/snippets.json b/snippet_data/snippets.json index 5a8457400..ce48794f0 100644 --- a/snippet_data/snippets.json +++ b/snippet_data/snippets.json @@ -714,11 +714,11 @@ } }, { - "id": "initialiaze_2d_list", + "id": "initialize_2d_list", "title": "initialize_2d_list", "type": "snippet", "attributes": { - "fileName": "initialiaze_2d_list.md", + "fileName": "initialize_2d_list.md", "text": "Initializes a 2D list of given width and height and value.\n\nUse list comprehension and `range()` to generate `h` rows where each is a list with length `h`, initialized with `val`.\nIf `val` is not provided, default to `None`.\n\n", "codeBlocks": { "code": "def initialize_2d_list(w,h, val = None):\n return [[val for x in range(w)] for y in range(h)]",