Step 1: Identify the issue in the sentence.
The preposition "in" is incorrectly used here. In English, "invited to" is the correct phrase when referring to attending an event.
Step 2: Correct the sentence.
Thus, the correct sentence is: "The gentry of the city was invited to the function."
Final Answer: \[ \boxed{\text{The gentry of the city was invited to the function.}} \]
Identify the part of the sentence that contains a grammatical error:
Each of the boys have submitted their assignment on time.
Complete the sentence with the correct verb:
Neither the students nor the teacher __ aware of the change in schedule.
Choose the correct option to complete the sentence:
"Neither the students nor the teacher ____________ ready for the exam.''