diff --git a/graf2d/postscript/src/TPDF.cxx b/graf2d/postscript/src/TPDF.cxx
index 55124440d95564961ae4e464b29419c4d453cf62..b4b3f11c46bdd5439a80bad2cd175d163e3afcd6 100644
--- a/graf2d/postscript/src/TPDF.cxx
+++ b/graf2d/postscript/src/TPDF.cxx
@@ -2115,7 +2115,7 @@ void TPDF::SetLineColor( Color_t cindex )
 ///
 /// To change the line join behaviour just do:
 /// ~~~ {.cpp}
-/// gStyle->SetLineJoinPS(2); // Set the PDF line join to bevel.
+/// gStyle->SetJoinLinePS(2); // Set the PDF line join to bevel.
 /// ~~~
 
 void TPDF::SetLineJoin( Int_t linejoin )
diff --git a/graf2d/postscript/src/TPostScript.cxx b/graf2d/postscript/src/TPostScript.cxx
index db97a629d80d7608ba6923564e74a22c927ba139..5de4b07e6a66d51474b66af2e0bfdb86210c1b3f 100644
--- a/graf2d/postscript/src/TPostScript.cxx
+++ b/graf2d/postscript/src/TPostScript.cxx
@@ -2423,7 +2423,7 @@ void TPostScript::SetLineColor( Color_t cindex )
 ///
 /// To change the line join behaviour just do:
 /// ~~~ {.cpp}
-/// gStyle->SetLineJoinPS(2); // Set the PS line join to bevel.
+/// gStyle->SetJoinLinePS(2); // Set the PS line join to bevel.
 /// ~~~
 
 void TPostScript::SetLineJoin( Int_t linejoin )