Add a note about references and pointers to Expression::Load (#708)

* Add a note about references and pointers to Expression::Load

* Formatting

* Remove comma

* Clearer English
This commit is contained in:
Ashley authored and GitHub committed 2021-04-11 14:21:02 -04:00
1 parent 3b4acc5300
commit 98db1dedcd
1 file changed
+3 -1
+3 -1
View File
@@ -676,7 +676,9 @@ impl<W: Write> Writer<W> {
write!(self.out, "{}", name)?;
}
crate::Expression::Load { pointer } => {
//write!(self.out, "*")?;
// We don't do any dereferencing with `*` here as pointer arguments to functions
// are done by `&` references and not `*` pointers. These do not need to be
// dereferenced.
self.put_expression(pointer, context, is_scoped)?;
}
crate::Expression::ImageSample {