[doc] fixed printing of code samples