diff --git a/docs/snippets/cpp/VS_Snippets_Winforms/ServiceContainerExample/CPP/form1.cpp b/docs/snippets/cpp/VS_Snippets_Winforms/ServiceContainerExample/CPP/form1.cpp index 185ec5d0cc7..1f6e669f912 100644 --- a/docs/snippets/cpp/VS_Snippets_Winforms/ServiceContainerExample/CPP/form1.cpp +++ b/docs/snippets/cpp/VS_Snippets_Winforms/ServiceContainerExample/CPP/form1.cpp @@ -175,7 +175,7 @@ public ref class Form1: public Form void button2_Click( Object^ /*sender*/, EventArgs^ /*e*/ ) { - /* ServiceContainer will throw an excpetion if a duplicate service + /* ServiceContainer will throw an exception if a duplicate service is added so remove it before we add */ // m_MyServiceContainer->RemoveService( Control::typeid );