Skip to content
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

fix(doc): add syntax highlighting to rust doctests #988

Merged
merged 4 commits into from
Mar 15, 2024
Merged

Conversation

mayeul-zama
Copy link
Contributor

No description provided.

@cla-bot cla-bot bot added the cla-signed label Mar 14, 2024
@mayeul-zama mayeul-zama requested a review from IceTDrinker March 14, 2024 09:17
@mayeul-zama mayeul-zama force-pushed the mz/doc_syntax branch 3 times, most recently from 2560fe0 to 1271885 Compare March 14, 2024 12:21
tfhe/src/integer/server_key/crt/scalar_mul_crt.rs Outdated Show resolved Hide resolved
tfhe/src/integer/server_key/crt/scalar_sub_crt.rs Outdated Show resolved Hide resolved
tfhe/src/integer/server_key/crt/scalar_sub_crt.rs Outdated Show resolved Hide resolved
tfhe/src/integer/server_key/crt_parallel/scalar_add_crt.rs Outdated Show resolved Hide resolved
tfhe/src/integer/server_key/crt_parallel/scalar_sub_crt.rs Outdated Show resolved Hide resolved
tfhe/src/high_level_api/integers/unsigned/ops.rs Outdated Show resolved Hide resolved
tfhe/src/high_level_api/integers/unsigned/ops.rs Outdated Show resolved Hide resolved
tfhe/src/high_level_api/integers/unsigned/ops.rs Outdated Show resolved Hide resolved
tfhe/src/high_level_api/integers/unsigned/ops.rs Outdated Show resolved Hide resolved
tfhe/src/high_level_api/integers/unsigned/ops.rs Outdated Show resolved Hide resolved
@mayeul-zama mayeul-zama force-pushed the mz/doc_syntax branch 3 times, most recently from 9f6f57c to 7cf5180 Compare March 14, 2024 12:56
@mayeul-zama mayeul-zama requested a review from IceTDrinker March 14, 2024 14:37
/// use tfhe::prelude::*;
/// use tfhe::{generate_keys, set_server_key, ConfigBuilder, FheUint16};
///
/// let (client_key, server_key) = generate_keys(ConfigBuilder::default());
Copy link
Member

Choose a reason for hiding this comment

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

space issue

Comment on lines 722 to 724
/// ```
rust_trait: Add(add),
implem: {
Copy link
Member

Choose a reason for hiding this comment

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

alignment mismatch

Comment on lines 765 to 767
/// ```
rust_trait: Sub(sub),
implem: {
Copy link
Member

Choose a reason for hiding this comment

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

alignment issue

Comment on lines 808 to 810
/// ```
rust_trait: Mul(mul),
implem: {
Copy link
Member

Choose a reason for hiding this comment

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

re

Comment on lines 849 to 851
/// ```
rust_trait: BitAnd(bitand),
implem: {
Copy link
Member

Choose a reason for hiding this comment

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

re

Comment on lines 890 to 892
/// ```
rust_trait: BitOr(bitor),
implem: {
Copy link
Member

Choose a reason for hiding this comment

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

re

Comment on lines 931 to 933
/// ```
rust_trait: BitXor(bitxor),
implem: {
Copy link
Member

Choose a reason for hiding this comment

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

re

Comment on lines 980 to 982
/// ```
rust_trait: Div(div),
implem: {
Copy link
Member

Choose a reason for hiding this comment

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

re

Comment on lines 1026 to 1028
/// ```
rust_trait: Rem(rem),
implem: {
Copy link
Member

Choose a reason for hiding this comment

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

re

@mayeul-zama mayeul-zama merged commit 155822b into main Mar 15, 2024
35 checks passed
@mayeul-zama mayeul-zama deleted the mz/doc_syntax branch March 15, 2024 08:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants