よう after (negated) short form of verb


In the sentence (found in Kanji in Context's workbook)

> 事故を起こさないよう、万全の注意を払った。

I assume 起こさないよう is the negative short form of 起こす followed by よう. But I can't
find an explanation, or other occurrences, of such a construct. According to
google's translation tool, the sentence means something like

> I paid perfect attention so as not to cause an accident.

So, よう following the short form of a verb indicates goal/purpose? Is that
correct? If so, could you point me to a reference, or to other occurrences?




I always assumed this was the same as ように.

EDIT: as the comments say, よう without the に is more formal.

<https://japanesetest4you.com/flashcard/learn-
jlpt-n3-grammar-%E3%82%88%E3%81%86%E3%81%AB-you-ni/>




I always assumed this was the same as ように.

EDIT: as the comments say, よう without the に is more formal.

<https://japanesetest4you.com/flashcard/learn-
jlpt-n3-grammar-%E3%82%88%E3%81%86%E3%81%AB-you-ni/>

