diff --git a/include/xo/facet/FacetRegistry.hpp b/include/xo/facet/FacetRegistry.hpp index 2a3aa48..aa481a0 100644 --- a/include/xo/facet/FacetRegistry.hpp +++ b/include/xo/facet/FacetRegistry.hpp @@ -115,7 +115,7 @@ namespace xo { * obj foo * = ...; // Foo instance with variant impl * obj bar - * = FacetRegistry::variant(foo); + * = FacetRegistry::instance().variant(foo); * * // exception thrown if bar has null data * @@ -140,7 +140,7 @@ namespace xo { * obj foo * = ...; // Foo instance with variant impl * obj bar - * = FacetRegistry::try_variant(foo); + * = FacetRegistry::instance().try_variant(foo); * if (bar) { * // success * } else {