Skip to content

Commit e7795ed

Browse files
committed
Some comment nits
1 parent 6d573e9 commit e7795ed

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/mono_item.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ impl<'gcc, 'tcx> PreDefineMethods<'tcx> for CodegenCx<'gcc, 'tcx> {
2626
let attrs = self.tcx.codegen_fn_attrs(def_id);
2727
let instance = Instance::mono(self.tcx, def_id);
2828
let DefKind::Static { nested, .. } = self.tcx.def_kind(def_id) else { bug!() };
29-
// Nested statics do not have a type, so pick a random type and let `define_static` figure out
29+
// Nested statics do not have a type, so pick a dummy type and let `codegen_static` figure out
3030
// the gcc type from the actual evaluated initializer.
3131
let ty = if nested {
3232
self.tcx.types.unit

0 commit comments

Comments
 (0)