diff --git a/llvm/include/llvm/Support/Printable.h b/llvm/include/llvm/Support/Printable.h --- a/llvm/include/llvm/Support/Printable.h +++ b/llvm/include/llvm/Support/Printable.h @@ -24,12 +24,12 @@ /// This class is useful to construct print helpers for raw_ostream. /// /// Example: -/// Printable PrintRegister(unsigned Register) { +/// Printable printRegister(unsigned Register) { /// return Printable([Register](raw_ostream &OS) { /// OS << getRegisterName(Register); -/// } +/// }); /// } -/// ... OS << PrintRegister(Register); ... +/// ... OS << printRegister(Register); ... /// /// Implementation note: Ideally this would just be a typedef, but doing so /// leads to operator << being ambiguous as function has matching constructors @@ -47,6 +47,6 @@ return OS; } -} +} // namespace llvm #endif