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/libterm/terminfo/mod.rs | |
| parent | 0b7af2668a80fb2fa720a06ca44aff4dd1e9de38 (diff) | |
| download | rust-c3e182cf43aea2c010a1915eb37293a458df2228.tar.gz rust-c3e182cf43aea2c010a1915eb37293a458df2228.zip | |
rustc: doc comments
Diffstat (limited to 'src/libterm/terminfo/mod.rs')
| -rw-r--r-- | src/libterm/terminfo/mod.rs | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/libterm/terminfo/mod.rs b/src/libterm/terminfo/mod.rs index eaa96df3f3b..0dbaa3d3dfd 100644 --- a/src/libterm/terminfo/mod.rs +++ b/src/libterm/terminfo/mod.rs @@ -69,7 +69,7 @@ impl fmt::Display for Error { } impl TermInfo { - /// Create a TermInfo based on current environment. + /// Creates a TermInfo based on current environment. pub fn from_env() -> Result<TermInfo, Error> { let term = match env::var("TERM") { Ok(name) => TermInfo::from_name(&name), @@ -84,7 +84,7 @@ impl TermInfo { } } - /// Create a TermInfo for the named terminal. + /// Creates a TermInfo for the named terminal. pub fn from_name(name: &str) -> Result<TermInfo, Error> { get_dbpath_for_term(name) .ok_or_else(|| { @@ -211,7 +211,7 @@ impl<T: Write + Send> Terminal for TerminfoTerminal<T> { } impl<T: Write + Send> TerminfoTerminal<T> { - /// Create a new TerminfoTerminal with the given TermInfo and Write. + /// Creates a new TerminfoTerminal with the given TermInfo and Write. pub fn new_with_terminfo(out: T, terminfo: TermInfo) -> TerminfoTerminal<T> { let nc = if terminfo.strings.contains_key("setaf") && terminfo.strings.contains_key("setab") { @@ -227,7 +227,7 @@ impl<T: Write + Send> TerminfoTerminal<T> { } } - /// Create a new TerminfoTerminal for the current environment with the given Write. + /// Creates a new TerminfoTerminal for the current environment with the given Write. /// /// Returns `None` when the terminfo cannot be found or parsed. pub fn new(out: T) -> Option<TerminfoTerminal<T>> { |
