فهرست منبع

For #1382: rename `me` -> `self` (#6261)

Rename a couple of remaining instances.

Co-authored-by: google-labs-jules[bot] <161369871+google-labs-jules[bot]@users.noreply.github.com>
Richard Smith 6 ماه پیش
والد
کامیت
95b78b0173
2فایلهای تغییر یافته به همراه3 افزوده شده و 3 حذف شده
  1. 1 1
      docs/design/README.md
  2. 2 2
      docs/design/pattern_matching.md

+ 1 - 1
docs/design/README.md

@@ -7,7 +7,7 @@ SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
 -->
 
 > **STATUS:** Up-to-date on 09-Aug-2022, including proposals up through
-> [#1327](https://github.com/carbon-language/carbon-lang/pull/1327).
+> [#1382](https://github.com/carbon-language/carbon-lang/pull/1382).
 
 <!-- toc -->
 

+ 2 - 2
docs/design/pattern_matching.md

@@ -102,7 +102,7 @@ reusing the result from an earlier comparison:
 ```carbon
 class ChattyIntMatcher {
   impl as EqWith(i32) {
-    fn Eq[me: ChattyIntMatcher](other: i32) {
+    fn Eq[self: ChattyIntMatcher](other: i32) {
       Print("Matching {0}", other);
       return other == 1;
     }
@@ -176,7 +176,7 @@ value matches the scope of the binding.
 class NoisyDestructor {
   fn Make() -> Self { return {}; }
   impl i32 as ImplicitAs(NoisyDestructor) {
-    fn Convert[me: i32]() -> Self { return Make(); }
+    fn Convert[self: i32]() -> Self { return Make(); }
   }
   destructor {
     Print("Destroyed!");