]> git.lizzy.rs Git - rust.git/blobdiff - Design.md
Take the width of block's prefix into account only once
[rust.git] / Design.md
index 7e2f00aebdfa9dc59f42251c6bc6c27ff36f5853..15b11d82844cd48c6c689a567a32272ff5ddf2a4 100644 (file)
--- a/Design.md
+++ b/Design.md
@@ -150,8 +150,8 @@ for its configuration.
 
 Our visitor keeps track of the desired current indent due to blocks (
 `block_indent`). Each `visit_*` method reformats code according to this indent,
-`config.ideal_width` and `config.max_width`. Most reformatting done in the
-`visit_*` methods is a bit hackey and is meant to be temporary until it can be
+`config.comment_width()` and `config.max_width()`. Most reformatting done in the
+`visit_*` methods is a bit hacky and is meant to be temporary until it can be
 done properly.
 
 There are a bunch of methods called `rewrite_*`. There do the bulk of the