Source: http://www.intratext.com/IXT/ENG0017/_P4X.HTM
Timestamp: 2019-04-19 22:31:26+00:00

Document:
Can. 1339 §1 When someone is in a proximate occasion of committing an offence or when, after an investigation, there is a serious suspicion that an offence has been committed, the Ordinary either personally or through another can give that person warning.
§2 In the case of behaviour which gives rise to scandal or serious disturbance of public order, the Ordinary can also correct the person, in a way appropriate to the particular conditions of the person and of what has been done.
§3 The fact that there has been a warning or a correction must always be proven, at least from some document to be kept in the secret archive of the curia.
Can. 1340 §1 A penance, which is imposed in the external forum, is the performance of some work of religion or piety or charity.
§2 A public penance is never to be imposed for an occult transgression.
§3 According to his prudent judgement, the Ordinary may add penances to the penal remedy of warning or correction.

References: §1

§2

§3
 §1

§2

§3