Skip to content

Commit

Permalink
docs: fix example EOL
Browse files Browse the repository at this point in the history
Signed-off-by: Carlos Alexandro Becker <caarlos0@users.noreply.github.com>
  • Loading branch information
caarlos0 committed Feb 1, 2024
1 parent 33d2a30 commit 3f297de
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions _examples/ssh-allocatepty/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -14,12 +14,12 @@ func main() {

pty, _, ok := s.Pty()
if !ok {
_, _ = fmt.Fprintln(s, "No PTY requested.")
_, _ = fmt.Fprint(s, "No PTY requested.\r\n")
_ = s.Exit(1)
return
}

_, _ = fmt.Fprintln(s, "Got a PTY:", pty.Term)
_, _ = fmt.Fprint(s, "Got a PTY: "+pty.Term+"\r\n")
})

log.Println("starting ssh server on port 2222...")
Expand Down

0 comments on commit 3f297de

Please sign in to comment.