Skip to content

various eof type signatures are not consistent #16577

Closed
@steveklabnik

Description

@steveklabnik
$ git grep "fn eof"
src/libnative/io/util.rs:pub fn eof() -> IoError {
src/libserialize/json.rs:    fn eof(&self) -> bool { self.ch.is_none() }
src/libstd/io/fs.rs:    pub fn eof(&self) -> bool {
src/libstd/io/mem.rs:    pub fn eof(&self) -> bool { self.pos >= self.buf.len() }
src/libstd/io/mem.rs:    pub fn eof(&self) -> bool { self.pos >= self.buf.len() }
src/libsyntax/print/pp.rs:pub fn eof(p: &mut Printer) -> io::IoResult<()> { p.pretty_...

One IoError, four bools, and one IoResult.

cc @aturon

Metadata

Metadata

Assignees

Labels

C-cleanupCategory: PRs that clean code up or issues documenting cleanup.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions