Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit d54b342

Browse filesBrowse files
committed
fix tests
Signed-off-by: Ashwin Naren <arihant2math@gmail.com>
1 parent 32ef384 commit d54b342
Copy full SHA for d54b342

File tree

1 file changed

+2
-3
lines changed
Filter options

1 file changed

+2
-3
lines changed

‎compiler/codegen/src/compile.rs

Copy file name to clipboardExpand all lines: compiler/codegen/src/compile.rs
+2-3Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3378,10 +3378,9 @@ fn clean_doc(doc: &str) -> String {
33783378
// after first line.
33793379
let margin = doc
33803380
.lines()
3381-
// Skip the first line as per cpython impl
3382-
.skip(1)
3383-
// Find the non-blank line with the least indentation
3381+
// Find the non-blank lines
33843382
.filter(|line| !line.trim().is_empty())
3383+
// get the one with the least indentation
33853384
.map(|line| line.chars().take_while(|c| c == &' ').count())
33863385
.min();
33873386
if let Some(margin) = margin {

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.