From cadead6a86eb4caf2116a1be2cf5d55e7570ee09 Mon Sep 17 00:00:00 2001 From: Dan Gohman Date: Fri, 22 Feb 2019 14:39:04 -0800 Subject: [PATCH] Use code quotes around `VMContext` in comments. --- lib/runtime/src/export.rs | 8 ++++---- lib/runtime/src/vmcontext.rs | 6 +++--- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/lib/runtime/src/export.rs b/lib/runtime/src/export.rs index f705fdaba6..8ee008aa3a 100644 --- a/lib/runtime/src/export.rs +++ b/lib/runtime/src/export.rs @@ -14,7 +14,7 @@ pub enum Export { address: *const VMFunctionBody, /// The function signature declaration, used for compatibilty checking. signature: ir::Signature, - /// Pointer to the containing VMContext. + /// Pointer to the containing `VMContext`. vmctx: *mut VMContext, }, @@ -22,7 +22,7 @@ pub enum Export { Table { /// The address of the table descriptor. definition: *mut VMTableDefinition, - /// Pointer to the containing VMContext. + /// Pointer to the containing `VMContext`. vmctx: *mut VMContext, /// The table declaration, used for compatibilty checking. table: TablePlan, @@ -32,7 +32,7 @@ pub enum Export { Memory { /// The address of the memory descriptor. definition: *mut VMMemoryDefinition, - /// Pointer to the containing VMContext. + /// Pointer to the containing `VMContext`. vmctx: *mut VMContext, /// The memory declaration, used for compatibilty checking. memory: MemoryPlan, @@ -42,7 +42,7 @@ pub enum Export { Global { /// The address of the global storage. definition: *mut VMGlobalDefinition, - /// Pointer to the containing VMContext. + /// Pointer to the containing `VMContext`. vmctx: *mut VMContext, /// The global declaration, used for compatibilty checking. global: Global, diff --git a/lib/runtime/src/vmcontext.rs b/lib/runtime/src/vmcontext.rs index bdaf37c386..b5f2a507e2 100644 --- a/lib/runtime/src/vmcontext.rs +++ b/lib/runtime/src/vmcontext.rs @@ -12,7 +12,7 @@ pub struct VMFunctionImport { /// A pointer to the imported function body. pub body: *const VMFunctionBody, - /// A pointer to the VMContext that owns the function. + /// A pointer to the `VMContext` that owns the function. pub vmctx: *mut VMContext, } @@ -67,7 +67,7 @@ pub struct VMTableImport { /// A pointer to the imported table description. pub from: *mut VMTableDefinition, - /// A pointer to the VMContext that owns the table description. + /// A pointer to the `VMContext` that owns the table description. pub vmctx: *mut VMContext, } @@ -104,7 +104,7 @@ pub struct VMMemoryImport { /// A pointer to the imported memory description. pub from: *mut VMMemoryDefinition, - /// A pointer to the VMContext that owns the memory description. + /// A pointer to the `VMContext` that owns the memory description. pub vmctx: *mut VMContext, }