diff --git a/psiSection/addingPsiElementsLesson/addingAnnotationsProgrammingTask/task.md b/psiSection/addingPsiElementsLesson/addingAnnotationsProgrammingTask/task.md index 3bcadfd..b0e5986 100644 --- a/psiSection/addingPsiElementsLesson/addingAnnotationsProgrammingTask/task.md +++ b/psiSection/addingPsiElementsLesson/addingAnnotationsProgrammingTask/task.md @@ -3,14 +3,14 @@ They are a form of syntactic metadata that can be added to the code but do not d The `@Deprecated` annotation marks a program element as deprecated, indicating that the element should no longer be used. -**Task** +**Task**: Implement the function ```kotlin fun addDeprecatedAnnotations(psiFile: PsiFile) ``` This function should iterate over all Kotlin functions (`KtFunction`) in the given PSI file. -For each function that does not already have a `@Deprecated` annotation, you will add one with a message indicating that the method is deprecated. +For each function that lacks a `@Deprecated` annotation, one should be added, accompanied by a message that signifies the method's deprecation.