先生の言ったとおりにやってください or 先生が言ったとおりにやってください

I'm trying to say "Please do as the teacher said"
CC BY-SA 3.0
2017-06-21T06:12:10.470
48595
2017-06-21T06:14:33.803
22630
question
grammar
Do I need to use の or が in this sentence
In relative clauses, が and の are _mostly_ interchangeable. These two sentences
are equally correct, and sound almost identical to me.

See: [How does the の work in
「日本人の知らない日本語」?](https://japanese.stackexchange.com/q/12825/5010)
CC BY-SA 3.0
2017-06-21T06:14:33.803
48596
2017-06-21T06:14:33.803
5010
48595
answer