Skip to content

Fix typos in code comments #8

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

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion sev-snp/src/utils.rs
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ use rand::RngCore;
use std::{fs::File, fs::OpenOptions, io::Write, path::PathBuf};

/// Generates 64 bytes of random data
/// Always guaranted to return something (ie, unwrap() can be safely called)
/// Always guaranteed to return something (ie, unwrap() can be safely called)
pub fn generate_random_data() -> Option<[u8; 64]> {
let mut data = [0u8; 64];
rand::thread_rng().fill_bytes(&mut data);
Expand Down
2 changes: 1 addition & 1 deletion zk/common/x509-verifier-rust-crypto/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ pub fn verify_x509_chain(cert_chain: &[X509Certificate]) -> bool {
}

fn verify_cert_issuer(subject: &X509Certificate, issuer: Option<&X509Certificate>) -> bool {
// the issuer param can be ommited,
// the issuer param can be omitted,
// if and only if it signs its own certificate, e.g. a root certificate
let current_issuer: &X509Certificate;
match issuer {
Expand Down