Skip to content

Commit 205340f

Browse files
authored
cspell fixes
1 parent 88b6716 commit 205340f

File tree

4 files changed

+12
-3
lines changed

4 files changed

+12
-3
lines changed

eng/dict/rust-custom.txt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,3 +12,6 @@ rustflags
1212
rustls
1313
rustsec
1414
turbofish
15+
dylib
16+
cdylib
17+
staticlib

sdk/cosmos/.dict.txt

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,3 +8,7 @@ udfs
88

99
# Cosmos' docs all use "Autoscale" as a single word, rather than a compound "AutoScale" or "Auto Scale"
1010
autoscale
11+
12+
cosmosclient
13+
libcosmosclient
14+
COSMOSCLIENT

sdk/cosmos/azure_data_cosmos_native/build.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
// Copyright (c) Microsoft Corporation. All rights reserved.
22
// Licensed under the MIT License.
33

4+
// cSpell:ignore SOURCEVERSION, SOURCEBRANCH, BUILDID, BUILDNUMBER
5+
46
fn main() {
57
let build_id = format!(
68
"$Id: {}, Version: {}, Commit: {}, Branch: {}, Build ID: {}, Build Number: {}, Timestamp: {}$",

sdk/cosmos/azure_data_cosmos_native/src/macros.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,14 +8,14 @@ macro_rules! c_str {
88
// Which ensures the string is generated as a c-str at compile time
99
const STR: &str = $s;
1010
const BYTES: [u8; STR.len() + 1] = const {
11-
let mut cstrbuf: [u8; STR.len() + 1] = [0; STR.len() + 1];
11+
let mut cstr_buf: [u8; STR.len() + 1] = [0; STR.len() + 1];
1212
let mut i = 0;
1313
// For loops over ranges don't work in const contexts yet.
1414
while i < STR.len() {
15-
cstrbuf[i] = STR.as_bytes()[i];
15+
cstr_buf[i] = STR.as_bytes()[i];
1616
i += 1;
1717
}
18-
cstrbuf
18+
cstr_buf
1919
};
2020
match CStr::from_bytes_with_nul(&BYTES) {
2121
Ok(cstr) => cstr,

0 commit comments

Comments
 (0)