Fixes issue #19843

Enums became purely namespaces with commit 3dcd2157403163789aaf21a9ab3c4d30a7c6494d

Broken code in the Enum section of the guide
There's a type here, `varient` should be `variant`