title: Output Showing in different lines. On taking user input
body: <p>I am taking a user input and then concatenating that user input with a String.
  But output is showing in two different lines. Any method to be placed so that "\n" gets removed and the both prints on the same line. I have tried <code>.trim()</code> but it's not working.</p>
  
  <pre><code>fn main () {
      let mut s = String::new();
      std::io::stdin().read_line(&amp;mut s).expect("_");
      s.trim();
      s.push_str(",World");
      println!("{}",s);
  }
  </code></pre>
  
  <p>Output I am getting.</p>
  
  <pre class="lang-none prettyprint-override"><code>hello      
  hello
  ,World
  </code></pre>
  
  <p>Output I want.</p>
  
  <pre class="lang-none prettyprint-override"><code>hello      
  hello,World
  </code></pre>
  
  <p>Solved: </p>
  
  <pre><code>fn main () {
      let mut s = String::new();
      std::io::stdin().read_line(&amp;mut s).expect("_");
      s.pop();
      s.push_str(",World");
      println!("{}",s);
  }
  </code></pre>