From fd7d8138a4ff5515f9b79c584a98d5c26d8ddb8a Mon Sep 17 00:00:00 2001 From: "Kartik K. Agaram" Date: Thu, 2 Mar 2017 05:48:01 -0800 Subject: 3750 --- html/001help.cc.html | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) (limited to 'html/001help.cc.html') diff --git a/html/001help.cc.html b/html/001help.cc.html index 201d24ea..61af7f42 100644 --- a/html/001help.cc.html +++ b/html/001help.cc.html @@ -79,7 +79,7 @@ if ('onhashchange' in window) { 18 << "Examples:\n" 19 << " To load files and run 'main':\n" 20 << " mu file1.mu file2.mu ...\n" - 21 << " To run 'main' and dump a trace of all operations at the end:\n" + 21 << " To run 'main' and dump a trace of all operations at the end:\n" 22 << " mu --trace file1.mu file2.mu ...\n" 23 << " To run all tests:\n" 24 << " mu test\n" @@ -87,7 +87,7 @@ if ('onhashchange' in window) { 26 << " mu test file1.mu file2.mu ...\n" 27 << " To run a single Mu scenario:\n" 28 << " mu test file1.mu file2.mu ... scenario\n" - 29 << " To run a single Mu scenario and dump a trace at the end:\n" + 29 << " To run a single Mu scenario and dump a trace at the end:\n" 30 << " mu --trace test file1.mu file2.mu ... scenario\n" 31 << " To load files and run only the tests in explicitly loaded files (for apps):\n" 32 << " mu --test-only-app test file1.mu file2.mu ...\n" @@ -98,7 +98,7 @@ if ('onhashchange' in window) { 37 << " To pass ingredients to a mu program, provide them after '--':\n" 38 << " mu file_or_dir1 file_or_dir2 ... -- ingredient1 ingredient2 ...\n" 39 << "\n" - 40 << " To browse a trace generated by a previous run:\n" + 40 << " To browse a trace generated by a previous run:\n" 41 << " mu browse-trace file\n" 42 ; 43 return 0; @@ -134,9 +134,9 @@ if ('onhashchange' in window) { 73 74 bool starts_with(const string& s, const string& pat) { 75 string::const_iterator a=s.begin(), b=pat.begin(); - 76 for (/*nada*/; a!=s.end() && b!=pat.end(); ++a, ++b) + 76 for (/*nada*/; a!=s.end() && b!=pat.end(); ++a, ++b) 77 if (*a != *b) return false; - 78 return b == pat.end(); + 78 return b == pat.end(); 79 } 80 81 //: I'll throw some style conventions here for want of a better place for them. @@ -268,12 +268,12 @@ if ('onhashchange' in window) { 207 // from http://stackoverflow.com/questions/152643/idiomatic-c-for-reading-from-a-const-map 208 template<typename T> typename T::mapped_type& get(T& map, typename T::key_type const& key) { 209 typename T::iterator iter(map.find(key)); -210 assert(iter != map.end()); +210 assert(iter != map.end()); 211 return iter->second; 212 } 213 template<typename T> typename T::mapped_type const& get(const T& map, typename T::key_type const& key) { 214 typename T::const_iterator iter(map.find(key)); -215 assert(iter != map.end()); +215 assert(iter != map.end()); 216 return iter->second; 217 } 218 template<typename T> typename T::mapped_type const& put(T& map, typename T::key_type const& key, typename T::mapped_type const& value) { @@ -281,7 +281,7 @@ if ('onhashchange' in window) { 220 return map[key]; 221 } 222 template<typename T> bool contains_key(T& map, typename T::key_type const& key) { -223 return map.find(key) != map.end(); +223 return map.find(key) != map.end(); 224 } 225 template<typename T> typename T::mapped_type& get_or_insert(T& map, typename T::key_type const& key) { 226 return map[key]; -- cgit 1.4.1-2-gfad0