Why am I getting an error CS0103?

I’m sorry in advance, I’m relatively new to Unity.

I’m following this tutorial:

and I’m at this state of the code:

using UnityEngine;
using System.Collections;

[RequireComponent(typeof(MeshFilter), typeof(MeshRenderer))]
public class Grid : MonoBehaviour {

public int xSize, ySize;

private Vector3[] vertices;

private void Awake (){
	Generate();
}

private void OnDrawGizmos (){
	if (vertices == null){
		return;
	}		
	
	Gizmos.color = Color.black;
	for (int i = 0; i < vertices.Length; i++){
		Gizmos.DrawSphere(vertices*, 0.1f);*
  •   }*
    
  • }*
  • private void Generate () {*
    _ vertices = new Vector3[(xSize + 1) * (ySize + 1)];_
  •   for (int y = 0; y <= ySize; y++) {*
    
  •   	for (int x = 0; x <= xSize; x++) {*
    

_ vertices = new Vector3(x, y);_
* }*
* }*
* }*
}
On the highlighted part, in the private void Generate I’m getting a compiler error CS0103: ‘The name ‘i’ does not exist in the current context’
I’m 99% confident I’ve followed the tutorial and wrote the code verbatim, but I don’t understand what I’ve done wrong.
Any help would be appreciated.

Confusing, they had the UnityPackage link at the bottom of that post. Also the first for loop is with variable i and y:

vertices = new Vector3[(xSize + 1) * (ySize + 1)];
for (int i = 0, y = 0; y <= ySize; y++) {
	for (int x = 0; x <= xSize; x++, i++) {
		vertices *= new Vector3(x, y);*
  • }*
    }
    in the first for loop there was an i and y variable defined.