Verified Commit 4bee56ff authored by Moritz Sokoll's avatar Moritz Sokoll 🦀
Browse files

fixed println

parent b4a99ae4
Pipeline #323 passed with stages
in 29 seconds
[package]
name = "btui"
version = "0.6.10"
version = "0.6.11"
edition = "2018"
authors = ["Moritz Sokoll <moritz@sokoll.com>"]
license = "MIT"
......
......@@ -5,7 +5,7 @@
## Usage
Add this to your `Cargo.toml` dependency list:
```toml
btui = "0.6.10"
btui = "0.6.11"
```
## Features
This crate supports some different features:
......
......@@ -4,7 +4,7 @@
//! with btui you can create beautiful text user interfaces for the terminal.
//! To get started add `btui` as a dependency to your project:
//! ```toml
//! btui = "0.6.10"
//! btui = "0.6.11"
//! ```
//!
//! # Examples
......
......@@ -95,7 +95,7 @@ impl Terminal {
/// print to stdout with newline
pub fn println<T: std::fmt::Display>(&self, content: T) -> Result<(), Error> {
let mut handle = self.stdo.lock();
match writeln!(handle, "{}\n", content) {
match writeln!(handle, "{}", content) {
Ok(_) => Ok(()),
Err(_) => Err(Error::new(ErrorKind::Other, "problems writing to stdout")),
}
......@@ -113,7 +113,7 @@ impl Terminal {
/// print to stderr with newline
pub fn eprintln<T: std::fmt::Display>(&self, content: T) -> Result<(), Error> {
let mut handle = self.stde.lock();
match writeln!(handle, "{}\n", content) {
match writeln!(handle, "{}", content) {
Ok(_) => Ok(()),
Err(_) => Err(Error::new(ErrorKind::Other, "problems writing to stdout")),
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment