Bug discovered on video Lecture: Basic Commands

I discovered this bug while going through the video on Chapter 1: Mongod
Lecture: Basic Commands
Around 3:15mins

On the shell helper command, the key value pair for the “name” : “name_index” is supposed to be the second object inside the array.
As shown below:
db.runCommand(
{ “createIndexes”: },
{ “indexes”: [
{
“key”: { “product”: 1 }
},
{ “name”: “name_index” }
]
}
)bug%20on%20video%20lesson%20Basic%20Commands