Skip to content

Fix off by 2 error in function sigs #1009

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
May 27, 2016
Merged

Fix off by 2 error in function sigs #1009

merged 1 commit into from
May 27, 2016

Conversation

nrc
Copy link
Member

@nrc nrc commented May 26, 2016

Fixes #1000

This is a little conservative in some cases, but better than being wrong in others.

let max_space = context.config.max_width;
if used_space <= max_space {
(0, max_space - used_space, new_indent)
Some((0, max_space - used_space, new_indent))
} else {
// Whoops! bankrupt.
// FIXME: take evasive action, perhaps kill the indent or something.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This FIXME can be removed now, right?

@marcusklaas
Copy link
Contributor

r+ with or without nit addressed

@nrc nrc merged commit d633e83 into master May 27, 2016
Fixes #1000

This is a little conservative in some cases, but better than being wrong in others.
@marcusklaas marcusklaas deleted the fn-args-1 branch May 28, 2016 09:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants