Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
T
ti3-rust
Manage
Activity
Members
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Deploy
Releases
Model registry
Analyze
Contributor analytics
Repository analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
koenigl2
ti3-rust
Commits
7a8a5bcb
Commit
7a8a5bcb
authored
4 years ago
by
koenigl
Browse files
Options
Downloads
Patches
Plain Diff
read: error in example
parent
706ae7e1
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/lib.rs
+1
-1
1 addition, 1 deletion
src/lib.rs
with
1 addition
and
1 deletion
src/lib.rs
+
1
−
1
View file @
7a8a5bcb
...
@@ -141,7 +141,7 @@ pub fn get_errno() -> c_int {
...
@@ -141,7 +141,7 @@ pub fn get_errno() -> c_int {
///
///
/// let mut remaining = read;
/// let mut remaining = read;
/// while remaining > 0 {
/// while remaining > 0 {
/// let written = match write(STDOUT, &buffer[
BUFSIZ
- remaining..], remaining) {
/// let written = match write(STDOUT, &buffer[
read
- remaining..], remaining) {
/// n if n < 0 => panic!("read: {}", strerror(get_errno())),
/// n if n < 0 => panic!("read: {}", strerror(get_errno())),
/// n => n as size_t,
/// n => n as size_t,
/// };
/// };
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment