docs: fix grammar and typos in comments and documentation (#5254)
* docs: fix grammar and typos in comments and documentation * docs: use British English style for e.g. and i.e. (no trailing comma) Changed from American English style (e.g.,) to British English style (e.g.) for consistency with the rest of the codebase."
This commit is contained in:
1 parent
409d8358b6
commit
4070d0c8bd
19 files changed
+30
-30
No files matched your search
@@ -1195,7 +1195,7 @@ impl BuildRequest {
|
||||
//
|
||||
// { "artifact":"target/debug/deps/libdioxus_core-4f2a0b3c1e5f8b7c.rlib", "emit":"link" }
|
||||
//
|
||||
// There are other outputs like depinfo that we might be interested in in the future.
|
||||
// There are other outputs like depinfo that we might be interested in the future.
|
||||
if let Ok(artifact) = serde_json::from_str::<RustcArtifact>(&line) {
|
||||
if artifact.emit == "link" {
|
||||
output_location = Some(artifact.artifact);
|
||||
|
||||
@@ -333,11 +333,11 @@ impl ComponentCommand {
|
||||
/// If both values are None, the default registry will be used
|
||||
#[derive(Clone, Debug, Parser, Default, Serialize, Deserialize)]
|
||||
pub struct RemoteComponentRegistry {
|
||||
/// The url of the the component registry
|
||||
/// The url of the component registry
|
||||
#[arg(long)]
|
||||
git: Option<String>,
|
||||
|
||||
/// The revision of the the component registry
|
||||
/// The revision of the component registry
|
||||
#[arg(long)]
|
||||
rev: Option<String>,
|
||||
}
|
||||
|
||||
@@ -663,7 +663,7 @@ impl TraceController {
|
||||
}
|
||||
}
|
||||
|
||||
// If we have "safe" error, we we need to log it
|
||||
// If we have "safe" error, we need to log it
|
||||
if let Ok(Err(err)) = &res {
|
||||
self.record_backtrace(
|
||||
err,
|
||||
@@ -1081,7 +1081,7 @@ where
|
||||
};
|
||||
|
||||
// If the event has the captured panic attached, we record it through capture_backtrace directly.
|
||||
// Otherwise, we wont have a backtrace to work with, so we just log the event as a telemetry event.
|
||||
// Otherwise, we won't have a backtrace to work with, so we just log the event as a telemetry event.
|
||||
if let Some(error) = visitor.captured_panic {
|
||||
self.record_backtrace(
|
||||
error.error.as_ref(),
|
||||
|
||||
@@ -292,7 +292,7 @@ impl Output {
|
||||
});
|
||||
}
|
||||
|
||||
// Toggle the more modal by swapping the the terminal with a new one
|
||||
// Toggle the more modal by swapping the terminal with a new one
|
||||
// This is a bit of a hack since crossterm doesn't technically support changing the
|
||||
// size of an inline viewport.
|
||||
KeyCode::Char('/') => {
|
||||
|
||||
@@ -46,7 +46,7 @@ pub(crate) struct AppServer {
|
||||
pub(crate) client: AppBuilder,
|
||||
pub(crate) server: Option<AppBuilder>,
|
||||
|
||||
// Related to to the filesystem watcher
|
||||
// Related to the filesystem watcher
|
||||
pub(crate) watcher: Box<dyn notify::Watcher>,
|
||||
pub(crate) _watcher_tx: UnboundedSender<notify::Event>,
|
||||
pub(crate) watcher_rx: UnboundedReceiver<notify::Event>,
|
||||
|
||||
@@ -222,7 +222,7 @@ impl TailwindCli {
|
||||
let arch = match target_lexicon::HOST.architecture {
|
||||
target_lexicon::Architecture::X86_64 if platform == "windows" => "x64.exe",
|
||||
target_lexicon::Architecture::X86_64 => "x64",
|
||||
// you would think this would be arm64.exe, but tailwind doesnt distribute arm64 binaries
|
||||
// you would think this would be arm64.exe, but tailwind doesn't distribute arm64 binaries
|
||||
target_lexicon::Architecture::Aarch64(_) if platform == "windows" => "x64.exe",
|
||||
target_lexicon::Architecture::Aarch64(_) => "arm64",
|
||||
_ => return None,
|
||||
|
||||
Reference in new issue
Block a user