Fix erroneous instantiation code example in docs