diff options
| author | Alexander Regueiro <alexreg@me.com> | 2019-02-08 14:53:55 +0100 |
|---|---|---|
| committer | Alexander Regueiro <alexreg@me.com> | 2019-02-10 23:42:32 +0000 |
| commit | c3e182cf43aea2c010a1915eb37293a458df2228 (patch) | |
| tree | 225aa2dfceff56d10c0b31f6966fbf7ec5da8180 /src/librustc_plugin | |
| parent | 0b7af2668a80fb2fa720a06ca44aff4dd1e9de38 (diff) | |
| download | rust-c3e182cf43aea2c010a1915eb37293a458df2228.tar.gz rust-c3e182cf43aea2c010a1915eb37293a458df2228.zip | |
rustc: doc comments
Diffstat (limited to 'src/librustc_plugin')
| -rw-r--r-- | src/librustc_plugin/build.rs | 2 | ||||
| -rw-r--r-- | src/librustc_plugin/lib.rs | 2 | ||||
| -rw-r--r-- | src/librustc_plugin/registry.rs | 2 |
3 files changed, 3 insertions, 3 deletions
diff --git a/src/librustc_plugin/build.rs b/src/librustc_plugin/build.rs index 46c452668c3..c1ba4d7b3d8 100644 --- a/src/librustc_plugin/build.rs +++ b/src/librustc_plugin/build.rs @@ -30,7 +30,7 @@ impl<'v> ItemLikeVisitor<'v> for RegistrarFinder { } } -/// Find the function marked with `#[plugin_registrar]`, if any. +/// Finds the function marked with `#[plugin_registrar]`, if any. pub fn find_plugin_registrar<'tcx>(tcx: TyCtxt<'_, 'tcx, 'tcx>) -> Option<DefId> { tcx.plugin_registrar_fn(LOCAL_CRATE) } diff --git a/src/librustc_plugin/lib.rs b/src/librustc_plugin/lib.rs index 32e003ff107..667b43c2ad0 100644 --- a/src/librustc_plugin/lib.rs +++ b/src/librustc_plugin/lib.rs @@ -4,7 +4,7 @@ //! in various ways. //! //! Plugin authors will use the `Registry` type re-exported by -//! this module, along with its methods. The rest of the module +//! this module, along with its methods. The rest of the module //! is for use by `rustc` itself. //! //! To define a plugin, build a dylib crate with a diff --git a/src/librustc_plugin/registry.rs b/src/librustc_plugin/registry.rs index b53d956a9c0..c6f3dd36ad9 100644 --- a/src/librustc_plugin/registry.rs +++ b/src/librustc_plugin/registry.rs @@ -68,7 +68,7 @@ impl<'a> Registry<'a> { } } - /// Get the plugin's arguments, if any. + /// Gets the plugin's arguments, if any. /// /// These are specified inside the `plugin` crate attribute as /// |
