about summary refs log tree commit diff
diff options
context:
space:
mode:
authorDev381 <49997896+Dev380@users.noreply.github.com>2023-09-18 16:37:27 -0400
committerDev381 <49997896+Dev380@users.noreply.github.com>2023-09-18 16:37:27 -0400
commit522485343466bf81b9dedcb340d24f5287669c28 (patch)
tree2553043eb44c4b64a2a41b17a423b9269e933d41
parent367ba9cd003e271dc4d7e354b1212fe3c60d3329 (diff)
downloadrust-522485343466bf81b9dedcb340d24f5287669c28.tar.gz
rust-522485343466bf81b9dedcb340d24f5287669c28.zip
Remove periods from end of sentences in redundant_as_str comments
-rw-r--r--tests/ui/redundant_as_str.fixed8
-rw-r--r--tests/ui/redundant_as_str.rs8
2 files changed, 8 insertions, 8 deletions
diff --git a/tests/ui/redundant_as_str.fixed b/tests/ui/redundant_as_str.fixed
index a95ab2d25a2..c4962e7e000 100644
--- a/tests/ui/redundant_as_str.fixed
+++ b/tests/ui/redundant_as_str.fixed
@@ -3,21 +3,21 @@
 fn main() {
 	let string = "Hello, world!".to_owned();
 
-	// These methods are redundant and the `as_str` can be removed.
+	// These methods are redundant and the `as_str` can be removed
     let _redundant = string.as_bytes();
     let _redundant = string.is_empty();
 
-    // These methods don't use `as_str` when they are redundant.
+    // These methods don't use `as_str` when they are redundant
     let _no_as_str = string.as_bytes();
     let _no_as_str = string.is_empty();
 
 	// These methods are not redundant, and are equivelant to
-	// doing dereferencing the string and applying the method.
+	// doing dereferencing the string and applying the method
     let _not_redundant = string.as_str().escape_unicode();
     let _not_redundant = string.as_str().trim();
     let _not_redundant = string.as_str().split_whitespace();
 
-	// These methods don't use `as_str` and are applied on a `str` directly.
+	// These methods don't use `as_str` and are applied on a `str` directly
 	let borrowed_str = "Hello, world!";
     let _is_str = borrowed_str.as_bytes();
     let _is_str = borrowed_str.is_empty();
diff --git a/tests/ui/redundant_as_str.rs b/tests/ui/redundant_as_str.rs
index d5ccfe2effe..7357d7f0eea 100644
--- a/tests/ui/redundant_as_str.rs
+++ b/tests/ui/redundant_as_str.rs
@@ -3,21 +3,21 @@
 fn main() {
 	let string = "Hello, world!".to_owned();
 
-	// These methods are redundant and the `as_str` can be removed.
+	// These methods are redundant and the `as_str` can be removed
     let _redundant = string.as_str().as_bytes();
     let _redundant = string.as_str().is_empty();
 
-    // These methods don't use `as_str` when they are redundant.
+    // These methods don't use `as_str` when they are redundant
     let _no_as_str = string.as_bytes();
     let _no_as_str = string.is_empty();
 
 	// These methods are not redundant, and are equivelant to
-	// doing dereferencing the string and applying the method.
+	// doing dereferencing the string and applying the method
     let _not_redundant = string.as_str().escape_unicode();
     let _not_redundant = string.as_str().trim();
     let _not_redundant = string.as_str().split_whitespace();
 
-	// These methods don't use `as_str` and are applied on a `str` directly.
+	// These methods don't use `as_str` and are applied on a `str` directly
 	let borrowed_str = "Hello, world!";
     let _is_str = borrowed_str.as_bytes();
     let _is_str = borrowed_str.is_empty();