Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(209)

Unified Diff: pkg/dev_compiler/tool/input_sdk/patch/math_patch.dart

Issue 2852053002: Update documentation on trignometric functions. (Closed)
Patch Set: Update fingerprints. Created 3 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « pkg/analyzer/test/src/context/mock_sdk.dart ('k') | runtime/lib/math_patch.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/dev_compiler/tool/input_sdk/patch/math_patch.dart
diff --git a/pkg/dev_compiler/tool/input_sdk/patch/math_patch.dart b/pkg/dev_compiler/tool/input_sdk/patch/math_patch.dart
index d727e225aea559aed2528733994b47c4050872a1..01c7ca3a7fe730b5134a6f53caf0f1be419bcaa1 100644
--- a/pkg/dev_compiler/tool/input_sdk/patch/math_patch.dart
+++ b/pkg/dev_compiler/tool/input_sdk/patch/math_patch.dart
@@ -19,13 +19,13 @@ num/*=T*/ max/*<T extends num>*/(num/*=T*/ a, num/*=T*/ b) =>
double sqrt(num x) => JS('num', r'Math.sqrt(#)', checkNum(x));
@patch
-double sin(num x) => JS('num', r'Math.sin(#)', checkNum(x));
+double sin(num radians) => JS('num', r'Math.sin(#)', checkNum(radians));
@patch
-double cos(num x) => JS('num', r'Math.cos(#)', checkNum(x));
+double cos(num radians) => JS('num', r'Math.cos(#)', checkNum(radians));
@patch
-double tan(num x) => JS('num', r'Math.tan(#)', checkNum(x));
+double tan(num radians) => JS('num', r'Math.tan(#)', checkNum(radians));
@patch
double acos(num x) => JS('num', r'Math.acos(#)', checkNum(x));
« no previous file with comments | « pkg/analyzer/test/src/context/mock_sdk.dart ('k') | runtime/lib/math_patch.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698