Skip to content

Commit

Permalink
Fix confusion in Translation Units doc (#4245)
Browse files Browse the repository at this point in the history
I think the sentence was saying the opposite of what it meant!

Co-authored-by: Yong He <[email protected]>
  • Loading branch information
eliemichel and csyonghe authored May 30, 2024
1 parent daec0a3 commit 523a637
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/user-guide/08-compiling.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ Note that the `#include`d files do not become additional source units; they are
Source units (such as files) are grouped into _translation units_, and each translation unit will produce a single _module_ when compiled.

While the source units are all preprocessed and parsed independently, semantic checking is applied to a translation unit as a whole.
One source file in a translation unit may freely refer to declarations in another translation unit without any need for forward declarations. For example:
One source file in a translation unit may freely refer to declarations in another source file from the same translation unit without any need for forward declarations. For example:

```hlsl
// A.slang
Expand Down

0 comments on commit 523a637

Please sign in to comment.