Skip to content

Commit 0743cb1

Browse files
committed
acceptor: fix nightly doc_overindented_list_items warns
Of the form: ``` warning: doc list item overindented --> librustls/src/acceptor.rs:219:9 | 219 | /// with rustls_accepted_into_connection. | ^^^^^ help: try using ` ` (3 spaces) | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#doc_overindented_list_items = note: `#[warn(clippy::doc_overindented_list_items)]` on by default ```
1 parent c9b1c88 commit 0743cb1

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

librustls/src/acceptor.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -216,7 +216,7 @@ impl rustls_accepted {
216216
/// - The SNI contains a NUL byte.
217217
/// - The `accepted` parameter was NULL.
218218
/// - The `accepted` parameter was already transformed into a connection
219-
/// with rustls_accepted_into_connection.
219+
/// with rustls_accepted_into_connection.
220220
#[no_mangle]
221221
pub extern "C" fn rustls_accepted_server_name(
222222
accepted: *const rustls_accepted,
@@ -331,7 +331,7 @@ impl rustls_accepted {
331331
/// - i is greater than the number of offered ALPN protocols.
332332
/// - The client did not offer the ALPN extension.
333333
/// - The `accepted` parameter was already transformed into a connection
334-
/// with rustls_accepted_into_connection.
334+
/// with rustls_accepted_into_connection.
335335
///
336336
/// The returned value is valid until rustls_accepted_into_connection or
337337
/// rustls_accepted_free is called on the same `accepted`. It is not owned

librustls/src/rustls.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -919,7 +919,7 @@ rustls_result rustls_acceptor_accept(struct rustls_acceptor *acceptor,
919919
* - The SNI contains a NUL byte.
920920
* - The `accepted` parameter was NULL.
921921
* - The `accepted` parameter was already transformed into a connection
922-
* with rustls_accepted_into_connection.
922+
* with rustls_accepted_into_connection.
923923
*/
924924
struct rustls_str rustls_accepted_server_name(const struct rustls_accepted *accepted);
925925

@@ -986,7 +986,7 @@ uint16_t rustls_accepted_cipher_suite(const struct rustls_accepted *accepted,
986986
* - i is greater than the number of offered ALPN protocols.
987987
* - The client did not offer the ALPN extension.
988988
* - The `accepted` parameter was already transformed into a connection
989-
* with rustls_accepted_into_connection.
989+
* with rustls_accepted_into_connection.
990990
*
991991
* The returned value is valid until rustls_accepted_into_connection or
992992
* rustls_accepted_free is called on the same `accepted`. It is not owned

0 commit comments

Comments
 (0)