Skip to content

Commit 18c423e

Browse files
author
Paolo Tranquilli
committed
Rust: fix formatting of code snippet in docstring
1 parent 6111a74 commit 18c423e

File tree

6 files changed

+8
-13
lines changed

6 files changed

+8
-13
lines changed

rust/.generated.list

Lines changed: 3 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

rust/ql/lib/codeql/rust/elements/Function.qll

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,7 @@ private import codeql.rust.generated.Function
88
/**
99
* A function declaration. For example
1010
* ```
11-
* fn foo(x: u32) -> u64 { (x + 1).into()
12-
* }
11+
* fn foo(x: u32) -> u64 { (x + 1).into() }
1312
* ```
1413
* A function declaration within a trait might not have a body:
1514
* ```

rust/ql/lib/codeql/rust/generated/Function.qll

Lines changed: 1 addition & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

rust/ql/lib/codeql/rust/generated/Raw.qll

Lines changed: 1 addition & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

rust/ql/test/extractor-tests/generated/Function/gen_function.rs

Lines changed: 1 addition & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

rust/schema.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -60,8 +60,7 @@ class Function(Declaration):
6060
"""
6161
A function declaration. For example
6262
```
63-
fn foo(x: u32) -> u64 { (x + 1).into()
64-
}
63+
fn foo(x: u32) -> u64 { (x + 1).into() }
6564
```
6665
A function declaration within a trait might not have a body:
6766
```

0 commit comments

Comments
 (0)