You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@dubbo.apache.org by GitBox <gi...@apache.org> on 2018/09/12 05:28:20 UTC

[GitHub] ralf0131 closed pull request #149: May be there an error in "How SPI Works"? #148

ralf0131 closed pull request #149: May be there an error in "How SPI Works"? #148
URL: https://github.com/apache/incubator-dubbo-website/pull/149
 
 
   

This is a PR merged from a forked repository.
As GitHub hides the original diff on merge, it is displayed below for
the sake of provenance:

As this is a foreign pull request (from a fork), the diff is supplied
below (as it won't show otherwise due to GitHub magic):

diff --git a/docs/en-us/dev/SPI.md b/docs/en-us/dev/SPI.md
index 93a79ce6..080d13b3 100644
--- a/docs/en-us/dev/SPI.md
+++ b/docs/en-us/dev/SPI.md
@@ -31,7 +31,7 @@ package com.alibaba.xxx;
  
 import com.alibaba.dubbo.rpc.Protocol;
  
-public class XxxProtocol implemenets Protocol { 
+public class XxxProtocol implements Protocol { 
     // ...
 }
 ```
@@ -57,10 +57,10 @@ package com.alibaba.xxx;
  
 import com.alibaba.dubbo.rpc.Protocol;
  
-public class XxxProtocolWrapper implemenets Protocol {
+public class XxxProtocolWrapper implements Protocol {
     Protocol impl;
  
-    public XxxProtocol(Protocol protocol) { impl = protocol; }
+    public XxxProtocolWrapper(Protocol protocol) { impl = protocol; }
  
     //after interface method is executed,the method in extension will be executed
     public void refer() {
@@ -100,7 +100,7 @@ public interface WheelMaker {
 `CarMaker`  implementation:
 
 ```java
-public class RaceCarMaker implemenets CarMaker {
+public class RaceCarMaker implements CarMaker {
     WheelMaker wheelMaker;
  
     public setWheelMaker(WheelMaker wheelMaker) {
@@ -149,7 +149,7 @@ public interface WheelMaker {
 `CarMaker`  implementation:
 
 ```java
-public class RaceCarMaker implemenets CarMaker {
+public class RaceCarMaker implements CarMaker {
     WheelMaker wheelMaker;
  
     public setWheelMaker(WheelMaker wheelMaker) {
diff --git a/docs/zh-cn/dev/SPI.md b/docs/zh-cn/dev/SPI.md
index fee7c7c4..99e1956c 100644
--- a/docs/zh-cn/dev/SPI.md
+++ b/docs/zh-cn/dev/SPI.md
@@ -31,7 +31,7 @@ package com.alibaba.xxx;
  
 import com.alibaba.dubbo.rpc.Protocol;
  
-public class XxxProtocol implemenets Protocol { 
+public class XxxProtocol implements Protocol { 
     // ...
 }
 ```
@@ -57,10 +57,10 @@ package com.alibaba.xxx;
  
 import com.alibaba.dubbo.rpc.Protocol;
  
-public class XxxProtocolWrapper implemenets Protocol {
+public class XxxProtocolWrapper implements Protocol {
     Protocol impl;
  
-    public XxxProtocol(Protocol protocol) { impl = protocol; }
+    public XxxProtocolWrapper(Protocol protocol) { impl = protocol; }
  
     // 接口方法做一个操作后,再调用extension的方法
     public void refer() {
@@ -100,7 +100,7 @@ public interface WheelMaker {
 `CarMaker` 的一个实现类:
 
 ```java
-public class RaceCarMaker implemenets CarMaker {
+public class RaceCarMaker implements CarMaker {
     WheelMaker wheelMaker;
  
     public setWheelMaker(WheelMaker wheelMaker) {
@@ -149,7 +149,7 @@ public interface WheelMaker {
 `CarMaker` 的一个实现类:
 
 ```java
-public class RaceCarMaker implemenets CarMaker {
+public class RaceCarMaker implements CarMaker {
     WheelMaker wheelMaker;
  
     public setWheelMaker(WheelMaker wheelMaker) {


 

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services

---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@dubbo.apache.org
For additional commands, e-mail: notifications-help@dubbo.apache.org